|
Subject: [xsl] Simple lookup in XSLT2 From: Jens Stavnstrup <js@xxxxxxx> Date: Tue, 14 Nov 2006 11:30:57 +0100 (CET) |
All,
I have for quite a few years used this primitive way of translating
from a month number to a month name.
<xslt:variable name="$months">
<m>January</m><m>February</m><m>March</m><m>April</m>
<m>May</m><m>June</m><m>July</m><m>August</m>
<m>September</m><m>October</m><m>November</m><m>December</m>
</xsl:variable>
The actual lookup was done using a this expression
<xsl:value-of
select="$months/m[number($month)]"/>
Where $month can be the string 1 .. 12.
This works just fine with XSLT 1.0, but for some strange reason, it does
not work for XSLT2.
I have massage the select statement beyound recognition, but it still does
not work. i am obviouly missing something basic XSLT2.
Regards,
Jens
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Re: xsl-list Digest 10 Nov 20, Eric Pheatt | Thread | Re: [xsl] Simple lookup in XSLT2, David Carlisle |
| Re: [xsl] XSL-FO positioning inline, Andrew Welch | Date | Re: [xsl] Simple lookup in XSLT2, David Carlisle |
| Month |