Subject: Re: [xsl] Numbering 1st 2nd 3rd ... From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 13 Sep 2006 00:22:14 +0200 |
Mark the line that says: <xsl:with-param name="top" select="200" />
Cheers, Abel Braaksma http://abelleba.metacarpus.com
Recursive algorithm? (template which starts at the first, and calls itself passing param = param + 1).
-s
On 9/12/06, Spencer Tickner <spencertickner@xxxxxxxxx> wrote:Hi List,
Thanks in advance for the help. I'm wondering if there's an elegant way to format position() like: 1st 2nd 3rd and so on. I've looked through google for a format that works with xsl:number, but haven't been able to find anything. I know I could always do a long <xsl:choose> statement, but it feels wrong. Anyway here's some samples
XML
<root> <num>foo</num> <num>bar</num> </root>
Output
<root> <num>1st</num> <num>2nd</num> </root>
Cheers,
Spencer
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Numbering 1st 2nd 3rd ..., Steve | Thread | Re: [xsl] Numbering 1st 2nd 3rd ..., Spencer Tickner |
Re: [xsl] XSL:FO - how to render a , G. Ken Holman | Date | Re: [xsl] Numbering 1st 2nd 3rd ..., Spencer Tickner |
Month |