[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:33:48 +0200
Re:  Return system's date and time
You can use the functions without namespace. The default namespace for any XPath function is "http://www.w3.org/2005/02/xpath-functions" and you may bind the functions to that namespace (you may use any prefix you choose) but it is more customary not to do so (but in writing we sometimes add the 'fn:' prefix to emphasize that we talk about xpath functions). You can write your code as this:

<xsl:value-of select="current-time()" />

Cheers,
-- Abel Braaksma


J. S. Rawat wrote:
Here is the syntax
<xsl:value-of select="fn:current-time()"/>
and a error "Namespace prefix fn has not been declared"
How to declared namespace?

At 11:22 AM 5/14/2007 +0200, you wrote:
fn:current-time()
fn:current-dateTime()
fn:current-date()

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-2011 All Rights Reserved.