xsl-list
[Top] [All Lists]

Re: [xsl] Adding xs:time to xs:dateTime

2008-02-16 09:39:24
On Feb 16, 2008 10:00 PM, Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de> 
wrote:
Why can't you use
<URL:http://www.w3.org/TR/xpath-functions/#func-dateTime>? It is a
constructor that takes a date and a time.

I would confirm this.

The following works fine with Saxon 9:

<xsl:variable name="date" select="xs:date('2008-02-14')" />
<xsl:variable name="time" select="xs:time('12:34:56-06:00')" />

<xsl:variable name="dateTime" select="dateTime($date, $time)" />


-- 
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>