[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: system call?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 05:34:16 +0100
> 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/

Current Thread
  • system call?
    • TGolshan - 19 Sep 2005 17:32:13 -0000
      • JBryant - 19 Sep 2005 17:59:41 -0000
        • TGolshan - 19 Sep 2005 18:25:14 -0000
        • Michael Kay - 20 Sep 2005 04:34:35 -0000 <=
      • <Possible follow-ups>
      • cknell - 19 Sep 2005 17:42:51 -0000
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member