RE: [xsl] system call?

Subject: RE: [xsl] 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
  • [xsl] system call?
    • TGolshan - Mon, 19 Sep 2005 10:30:51 -0700
      • JBryant - Mon, 19 Sep 2005 13:06:02 -0500
        • TGolshan - Mon, 19 Sep 2005 11:24:54 -0700
        • Michael Kay - Tue, 20 Sep 2005 05:34:16 +0100 <=
      • <Possible follow-ups>
      • cknell - Mon, 19 Sep 2005 13:41:51 -0400