> Hi there,
> Has anyone had any success in sorting numbers in XSL by casting the
> value in the "order-by" value to a number using the number()
> information method. I have followed the example given in the WEB
> workshop for Sorting XML as folows:
> <xsl:for-each select="/Orders/Order" order-by="number(OrderID)">
> but it does not work. If I remove the number() function I successfully
> get all orders sorted as text, but this is not the desired sort
method.
> Any help will be greatly appreciated.
> P.S. I am not using a schema.
> Thanks
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Hi there,
I have done more tests that revealed the following:
1. Cutting down the amount of data that is being sorted significantly
resulted in the sort on one column working perfectly.
<xsl:for-each select="/Orders/Order" order-by="number(OrderID)">
2. Adding a second sort field as in:
<xsl:for-each select="/Orders/Order" order-by="number(OrderID);number
(LineNum)">
Messes up the sort again.
Conclusion:
It seems that there is a bug/limitation that prevents the technology
from working beyond a certain size of data. This also depends on the
number of sort fields as the more sort fields the more working buffer
is required.
Does this make sense to anyone?
Has anyone encountered the same problems.
Thanks
Naamat Al-Aswad
Sent via Deja.com http://www.deja.com/
Before you buy.