This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: order-by: char or int?
Use XSL (that means change namespace to
http://www.w3.org/1999/XSL/Transform, more information at
www.netcrucible.com), use <xsl:sort> instead of order-by and set the
attribute data-type (more information at http://www.w3.org/TR/xslt#sorting).
Regards,
Joerg
> My xsl:for-each looks like this
>
> <xsl:for-each select="PrintCabinate/item" order-by="+ Name;currentPage">
> ----
> </xsl:for-each
>
> Now while sorting it, it assumes that currentPage is char, so it places 11
> before 7 for eg, whereas 7 shud be b4 11.
>
> is there a way to convert currentPage to int for the purpose of sorting.
>
> Thanks in advance.
>
> TP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list