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: xsl:sort Please Help


> 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


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