This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:sort Please Help
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl:sort Please Help
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 28 Jun 2001 22:15:59 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I am having problems using xsl:sort. I have found that the 'order-by'
> element works fine, but I need to sort numerically also.
>
> <current_projects>
> <xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:sort select="cost" data-type="number"/>
xsl:for-each needs a select attribute.
It doesn't need a namespace declaration.
You're not, by any chance, trying to use the XSLT xsl:for-each instruction
within a WD-xsl stylesheet, are you? That won't work - it's like putting a
Java statement inside a COBOL program.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list