Skip to content

Commit

Permalink
#22 no xslt var
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 20, 2016
1 parent aef76cb commit 19666db
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/xsl/index.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,9 @@
</xsl:if>
</xsl:template>
<xsl:template match="domains">
<xsl:variable name="sorted">
<ul>
<xsl:for-each select="domain">
<xsl:sort select="usage" data-type="number" case-order="upper-first" />
<xsl:copy-of select=".|@*" />
</xsl:for-each>
</xsl:variable>
<ul>
<xsl:for-each select="$sorted">
<xsl:if test="position() &lt; $max">
<xsl:apply-templates select="."/>
</xsl:if>
Expand Down

0 comments on commit 19666db

Please sign in to comment.