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 :-)
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--