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]

Re: sorting with the value from a tag



> <xsl:variable name="srtord" select="'NAAM'">
> </xsl:variable> 
> 
> <xsl:for-each select="vestigingen/vestiging"> 
> <xsl:sort select="$srtord" order="ascending"/> 

> It doesn't work,

This makes your sort key the string 'NAAM' for every node.
So every comparison will be comparing thestring 'NAAM' with itself,
so the output will just be the original order.

I'm not sure what you wanted to happen?

David


 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]