Subject: sorting with the value from a tag
From: Melle Zegel <melle.zegel@xxxxxxxxxxxx>
Date: Tue, 10 Oct 2000 18:18:36 +0200
|
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
|