Subject: Re: [xsl] How to substitute a string based on number From: Goetz Bock <bock@xxxxxxxxxxx> Date: Mon, 29 Oct 2001 13:55:25 +0100 |
On Mon, Oct 29 '01 at 04:37, Mailer Mailer wrote: > How can I substitute a string based on a number, e.g. > In you xsl-t file: . . . <my:monthnames xmlns:my="url://to/this/file"> <my:month>January</my:month> <my:month>February</my:month> <my:month>March</my:month> <my:month>April</my:month> <my:month>May</my:month> <my:month>June</my:month> <my:month>July</my:month> <my:month>August</my:month> <my:month>September</my:month> <my:month>October</my:month> <my:month>November</my:month> <my:month>December</my:month> </my:monthnames> . . . > <xsl:value-of select="$monthnames/*[$month]/@name"/> <xsl:value-of select="//my:monthnames/month[$month] /"> or better yes, add a @number attribute to the <my:month> entry with the apropriated month number. -- Goetz Bock IT Consultant Dipl.-Inf. Univ.
Attachment:
pgp00019.pgp
Description: PGP signature
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to substitute a string ba, Mailer Mailer | Thread | Re: [xsl] How to substitute a strin, Johannes Döbler |
Re: [xsl] Basic server-side transfo, Joerg Pietschmann | Date | Re: [xsl] How to substitute a strin, Johannes Döbler |
Month |