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

Re: Return system's date and time

Subject: Re: Return system's date and time
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 14 May 2007 11:54:46 +0200
Re:  Return system's date and time
J. S. Rawat wrote:

<xsl:value-of select="current-time()" />
Error: Unknown system function: corrent-time

Using
xmlns:fn="http://www.w3.org/2005/02/xpath-functions" and <xsl:value-of select="fn:current-time()" />
Error: The URI http://www.w3.org/2005/02/xpath-functions does not identify an external Java class
Processor: Saxon
stylsheet version:1.0



You seem to be using Saxon. Why do you use XSLT 1.0? You can easily switch to XSLT 2.0 by changing the version attribute. Saxon (8.9) supports XSLT 2.0 completely.


If you need to stick to XSLT 1.0, you are out of luck with basic XSLT, as the 1.0 does not have any date functions. But you can use the exslt extension functions, I believe that Saxon supports them. But then again: it is way easier to just change your version attribute of the xsl:stylesheet instruction.

Cheers,
-- Abel Braaksma

Current Thread

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.