|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: sorting the result of a calculation on xml that ca
Hi Sean,
Wellcome to the list.
> CALC div: <xsl:value-of select="(HomePupils + GuestPupils div Teachers) "/>
I would guess that this gives a NaN when HomePupils is empty.
That goes for your sorting algorithm as well.
<xsl:value-of select="(concat(HomePupils, substring('0', 1,
number(normalize-space(HomePupils)=''))) + GuestPupils div
Teachers)"/>
It would be better if you could change the input document to provide 0
instead of an empty string.
Hope this helps.
Ragulf Pickaxe :-)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








