svn path=/branches/design/; revision=17391

This commit is contained in:
samtuke 2010-10-09 15:19:50 +00:00
parent bdc9a008f2
commit 2e4fc3be41

View File

@ -227,40 +227,7 @@
</xsl:element><!-- end ul -->
<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:element name="ul">
<xsl:for-each select="/buildinfo/menuset/menu[@parent=$menu]">
<!--<xsl:sort select="@id"/>-->
<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(.))">
<xsl:value-of select="/buildinfo/textset/text[@id=$id]|
/buildinfo/textsetbackup/text[@id=$id
and not(@id=/buildinfo/textset/text/@id)]"/>
</xsl:when>
<xsl:when test=". = concat(/buildinfo/@filename ,'.html')">
<xsl:value-of select="/buildinfo/textset/text[@id=$id]|
/buildinfo/textsetbackup/text[@id=$id
and not(@id=/buildinfo/textset/text/@id)]"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="a">
<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)]"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:element> <!-- /li -->
</xsl:for-each>
</xsl:element> <!-- /ul -->
</xsl:for-each>
</xsl:element><!-- end menu -->
<xsl:element name="div">