This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: sorting with the value from a tag
- To: xsl-list at mulberrytech dot com
- Subject: Re: sorting with the value from a tag
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 10 Oct 2000 17:42:16 GMT
- CC: marnix at finalist dot com
- References: <352A96BB4C960D4BA35B7128CFA5B26101725E@comms.finalist.nl>
- Reply-To: xsl-list at mulberrytech dot com
> <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