In xslt2 you could also (more efficiently) do
<xslt:variable name="months" as="item()*" select=
"('January','February','March','April','May','June','July','Au
gust','September','October','November','December')"/>
<xsl:value-of select="$months[number($month)]"/>
Or even better, convert $month to an integer rather than a double:
<xsl:value-of select="$months[xs:integer($month)]"/>
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--