Trying a different sorting mechanism.

svn path=/branches/test/; revision=14427
This commit is contained in:
ato
2010-01-23 11:16:38 +00:00
parent f2f6d2fb27
commit 6d672032a0

View File

@@ -90,11 +90,12 @@
<!-- Menu -->
<xsl:for-each select="/buildinfo/menuset/menu[not(@parent)]">
<xsl:sort select="@id" />
<xsl:variable name="menu"><xsl:value-of select="@id"/></xsl:variable>
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
<xsl:element name="ul">
<xsl:for-each select="/buildinfo/menuset/menu[@parent=$menu]">
<!--<xsl:sort select="@id"/>-->
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<xsl:sort select="@priority" />
<xsl:variable name="id"><xsl:value-of select="@id" /></xsl:variable>
<xsl:element name="li">
<xsl:choose>
<xsl:when test="not(string(.))">
@@ -109,7 +110,7 @@
</xsl:when>
<xsl:otherwise>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="." /></xsl:attribute>
<xsl:value-of select="/buildinfo/textset/text[@id=$id]|
/buildinfo/textsetbackup/text[@id=$id
and not(@id=/buildinfo/textset/text/@id)]"/>
@@ -121,6 +122,7 @@
<xsl:element name="ul">
<xsl:for-each select="/buildinfo/menuset/menu[@parent=$id]">
<!--<xsl:sort select="@id" />-->
<xsl:sort select="@priority" />
<xsl:variable name="mid"><xsl:value-of select="@id" /></xsl:variable>
<xsl:element name="li">
<xsl:attribute name="class">submenu</xsl:attribute>