Subject: RE: [xsl] Dealing without global counters From: "Michael Kay" <mhk@xxxxxxxxx> Date: Thu, 13 Nov 2003 08:56:20 -0000 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dealing without global co, M. David Peterson | Thread | RE: [xsl] Dealing without global co, Michael Kay |
Re: Re: [xsl] Check if text is be, Sebastien deprez | Date | Re: [xsl] simple question: <fo: and, Barry van Weldam |
Month |