If you use an XSLT 2.0 processor (such as Saxon 8), you can get the
current year as follows:
<xsl:variable name="thisyear" select="format-date(current-date(),
'[Y0001]')"/>
or rather more efficiently
select="year-from-date(current-date())"
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>
--~--