It occured to me that a slightly more efficient way to get
the textual value of of a number would be similar to what
Dimitre mentioned earlier...
Adding this to the top of your stylesheet
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:textValue="my::textValue" exclude-result-prefixes="textValue"
<textValue:textValueofNumber>
<number value="1">First</number>
<number value="2">Second</number>
<number value="3">Third</number>
<number value="4">Fourth</number>
<number value="5">Fifth</number>
<number value="6">Sixth</number>
<number value="7">Seventh</number> </textValue:textValueofNumber>
In the latest XSLT 2.0 draft, and with Saxon 7.8, you can get the this
result using
<xsl:number value="$x" format="Ww" ordinal="yes" lang="en"/>
Michael Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list