This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sorting with the value from a tag


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]