Hi,
I have the following XML fragment.
<group>
<person>
<name>abc</name>
<age>1</age>
</person>
...
</group>
I have three other <person> nodes with ages 2, 10 and 11. Now, i use XSL
to represent this data in a table format. I want the rows of the table
to be sorted based on the age.
<xsl:for-each select="//group/person" order-by="age">
But, the order by doesnt seem to work properly. It shows the order as
follows:
1
10
11
2
It looks as though it has done a sort by taking the values as strings
and not numbers.
How do i make it sort properly ?
Thanks,
Prabakar S