Skip to content

Commit

Permalink
Merge pull request #52 from nextcloud/unify-licenses
Browse files Browse the repository at this point in the history
Unify licenses
  • Loading branch information
LukasReschke committed Jun 24, 2016
2 parents 9ae1ed2 + def113f commit e6bb9f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nextcloudappstore/core/api/v1/release/pre-info.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/info">
<info>
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />

<!-- reformat info.xml to have everything in order and excluded unknown elements -->
<xsl:copy-of select="id"/>
<xsl:copy-of select="name"/>
<xsl:copy-of select="description"/>
<xsl:copy-of select="version"/>
<xsl:copy-of select="licence"/>
<xsl:for-each select="licence">
<licence>
<xsl:value-of select="translate(., $uppercase, $lowercase)"/>
</licence>
</xsl:for-each>
<xsl:copy-of select="author"/>
<xsl:copy-of select="namespace"/>
<xsl:apply-templates select="types"/>
Expand Down

0 comments on commit e6bb9f6

Please sign in to comment.