Trying a different sorting mechanism.
svn path=/branches/test/; revision=14427
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user