saxon-b: adding duration to date

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

saxon-b: adding duration to date

Matthias Born
hi,

i must have overlooked sth...

why cant i add a duration (or subtype) to a date in this way:

<xsl:value-of select="format-date($start-date +
xdt:yearMonthDuration('P6M'), '[D,2].[M,2].')" />

the error report gives me:

Cannot find a matching 1-argument function named
{http://www.w3.org/2005/xpath-datatypes}yearMonthDuration()

the namespace i'm using is this one:
xmlns:xdt="http://www.w3.org/2005/xpath-datatypes

is it an schema-aware feature?
or is there'n other mistake?

thx!

der matze
--
Matthias Born
Orientation in Objects GmbH
Weinheimer Str. 68
D-68309 Mannheim
http://www.oio.de
Tel.: +49-(621)-71839-0
Fax.: +49-(621)-71839-50


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Reply | Threaded
Open this post in threaded view
|

Re: saxon-b: adding duration to date

Colin Paul Adams
>>>>> "Matthias" == Matthias Born <[hidden email]> writes:

    Matthias> the namespace i'm using is this one:
    Matthias> xmlns:xdt="http://www.w3.org/2005/xpath-datatypes

Saxon 8.5.1 pre-dates this namespace - you will need to change 2005 to 2005/04.
--
Colin Adams
Preston Lancashire


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Reply | Threaded
Open this post in threaded view
|

RE: saxon-b: adding duration to date

Michael Kay
In reply to this post by Matthias Born
In Saxon 8.5.1, the xdt namespace is
http://www.w3.org/2005/04/xpath-datatypes - that's from the Last Call draft
issued in April.

Fortunately the nightmare of having it change every release will soon be
behind us.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of
> Matthias Born
> Sent: 13 October 2005 17:44
> To: saxon
> Subject: [saxon] saxon-b: adding duration to date
>
> hi,
>
> i must have overlooked sth...
>
> why cant i add a duration (or subtype) to a date in this way:
>
> <xsl:value-of select="format-date($start-date +
> xdt:yearMonthDuration('P6M'), '[D,2].[M,2].')" />
>
> the error report gives me:
>
> Cannot find a matching 1-argument function named
> {http://www.w3.org/2005/xpath-datatypes}yearMonthDuration()
>
> the namespace i'm using is this one:
> xmlns:xdt="http://www.w3.org/2005/xpath-datatypes
>
> is it an schema-aware feature?
> or is there'n other mistake?
>
> thx!
>
> der matze
> --
> Matthias Born
> Orientation in Objects GmbH
> Weinheimer Str. 68
> D-68309 Mannheim
> http://www.oio.de
> Tel.: +49-(621)-71839-0
> Fax.: +49-(621)-71839-50
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads,
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> saxon-help mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help