Wednesday, November 12, 2008 01:38 PM
I am trying to create a XSL stylesheet for my XML page. I want to sort the information by the prices, for example, $2.95, then $3.25, then $4.25, then $5.49, then then $7.35, then $10.25. how do i do this? without organizing the code in that order?
(PRICE is the element>
I used xsl:sort select="PRICE" but with that it took $10.25 and placed it at the top, then $2.95.
then i used xsl:sort select="PRICE" data-type="number" instead. but that took 7.35, then 2.95, then 10.25. in that order.
How can I get the prices to list from least to greatest?