xsl-list
[Top] [All Lists]

RE: [xsl] format-number change number to text / ordinal text

2009-01-19 12:57:19

I'd like to know how to convert 1, 2, 3 etc into first, second, third.


You can't do this with format-number() but you can do it with <xsl:number/>.
For example

<xsl:number value="$i" format="w" ordinal="yes" lang="en"/>

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>