T
thomas
Is there anyway to sort an xml file either using asp or xsl BEFORE the
results are output by an xsl file, the way it works at the moment produces
some undesired results.
I use the below code to output 20 results per page but it only sorts the
first 20 results in the file then it sorts the next 20 results on the next
page.
<xsl:for-each select="cat/links[position() >= $startPos and position()
<= $endPos]">
<xsl:sort select="artist"/>
<code to output table>
</xsl:for-each>
In theory I would like the code to work like this but I get an error
<xsl:sort select="artist"/>
<xsl:for-each select="cat/links[position() >= $startPos and position()
<= $endPos]">
<code to output table>
</xsl:for-each>
Any Ideas?
results are output by an xsl file, the way it works at the moment produces
some undesired results.
I use the below code to output 20 results per page but it only sorts the
first 20 results in the file then it sorts the next 20 results on the next
page.
<xsl:for-each select="cat/links[position() >= $startPos and position()
<= $endPos]">
<xsl:sort select="artist"/>
<code to output table>
</xsl:for-each>
In theory I would like the code to work like this but I get an error
<xsl:sort select="artist"/>
<xsl:for-each select="cat/links[position() >= $startPos and position()
<= $endPos]">
<code to output table>
</xsl:for-each>
Any Ideas?