[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: system call?

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.