Subject: RE: Numbering 1st 2nd 3rd ...
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 12 Sep 2006 22:26:35 +0100
|
Even if you want English only, the algorithm is a little bit more complex
than taking (position() mod 10), because 11th, 12th, and 13th are exceptions
to the general rule.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Spencer Tickner [mailto:spencertickner@xxxxxxxxx]
> Sent: 12 September 2006 21:45
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: Numbering 1st 2nd 3rd ...
>
> Hi David,
>
> Thanks for the response. Unfortunately I'm stuck to xslt1 for
> this job. I'll take your advice on the mod though.
>
> Cheers,
>
> Spencer
>
> On 9/12/06, David Carlisle <davidc@xxxxxxxxx> wrote:
> >
> > if you are using xslt2 just useordinal="yes" on xsl:numer.
> > in xslt1 you'd have to use an xsl:choose after getting the
> last digir
> > as (posiotion() mod 10)
> >
> > David
|