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

XPath 2.0 Datatypes namespace

Subject: XPath 2.0 Datatypes namespace
From: "tom tom" <tomxsllist@xxxxxxxxxxx>
Date: Fri, 04 Aug 2006 12:01:11 +0100
 XPath 2.0 Datatypes namespace
Hi all,

I wish to calculate the time in another timezone, to acheive this I am using the following structure:

<xsl:sequence select="adjust-time-to-timezone(xs:time('10:00:00-04:00'), xdt:dayTimeDuration('PT4H'))"/>

which returns 18:00:00+04:00.

1. According to http://www.w3.org/TR/xpath-datamodel/ xs:dayTimeDuration is a type defined in the http://www.w3.org/2001/XMLSchema namespace. Why, then, can I only get this to work in the http://www.w3.org/2005/xpath-datatypes namespace when using Saxon 8?

2. Why do I need to declare the datatype atall given that the function is expecting a dayTime Duration datatype, ie why can I just use:

<xsl:sequence select="adjust-time-to-timezone(xs:time('10:00:00-04:00'), PT4H)"/> ?

3. Am I unwise to be using this functionality until these standards become recommendations?

Thanks

Tom

_________________________________________________________________
The new Windows Live Toolbar helps you guard against viruses http://toolbar.live.com/?mkt=en-gb


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.