|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Dealing without global counters
> 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
|
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








