Menu

#16 xsl:sort not working properly

open
nobody
Compiler (7)
5
2002-02-12
2002-02-12
Karen Reid
No

The xsl:sort tag seems to be ignored when used with the xsl:apply-templates tag. Also, in a
xsl:for-each loop, only one sort field seems to be effective.

Here's what I want to do:
<xsl:apply-templates>
<xsl:sort select="field1"/>
<xsl:sort select="field2"/>
</xsl:apply-templates>

This works with xalan-j_2_2_D11, but it doesn't work when I compile it. I've also tried putting the
sort fields inside a for-each loop and only the first field is sorted.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB