hopefully fixed the sorting problem with child nodes having propertyname attributes

This commit is contained in:
Tobi Schäfer 2004-07-12 13:01:28 +00:00
parent 12dc7af723
commit 1854389d32

View file

@ -78,11 +78,7 @@
</xsl:if> </xsl:if>
<xsl:for-each select="/xmlroot/hopobject/*"> <xsl:for-each select="/xmlroot/hopobject/*">
<!-- FIXME: sorting doesn't work completely. What we ought to do <xsl:sort select="normalize-space(concat(@propertyname, ' ' , name()))"/>
is sort by (@propertyname OR name()). Don't know how to
express that in XPath. -->
<xsl:sort select="@propertyname"/>
<xsl:sort select="name()"/>
<xsl:choose> <xsl:choose>
<xsl:when test="name() = 'hop:parent'"/> <xsl:when test="name() = 'hop:parent'"/>
<xsl:when test="name() = 'hop:child'"/> <xsl:when test="name() = 'hop:child'"/>