Re: sorting with the value from a tag

Subject: Re: sorting with the value from a tag
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 10 Oct 2000 17:42:16 GMT
> <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


Current Thread