[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to substitute a string based on number
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|