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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--