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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--