This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
sorting with the value from a tag
- To: "'XSL-List at mulberrytech dot com'" <XSL-List at mulberrytech dot com>, Marnix van der Ham <marnix at finalist dot com>
- Subject: sorting with the value from a tag
- From: Melle Zegel <melle dot zegel at finalist dot com>
- Date: Tue, 10 Oct 2000 18:18:36 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi
we are trying to make the sort statement in our XSL generic by setting it as
tag in the XML file.
until now we do not take sort variable out of the XML file.
we just declare the sort variable as a xsl:variable srtord and then try to
use it in the sort select.
code________________________________
<xsl:variable name="srtord" select="'NAAM'">
</xsl:variable>
<xsl:for-each select="vestigingen/vestiging">
<xsl:sort select="$srtord" order="ascending"/>
eof code________________________________________
It doesn't work, sort select doesn't take the variable srtord.
Hope you can help us
Melle
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list