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

xdt:dayTimeDuration casting issue

Subject: xdt:dayTimeDuration casting issue
From: "Laura Porter" <lporter@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 8 Mar 2007 14:50:45 -0000
 xdt:dayTimeDuration casting issue
Hi,

I am using Saxon 8.7.3J and having an issue casting a string to
xdt:dayTimeDuration for use in  days-from-duration()

The error I'm getting is:

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

I've checked that the namespace is correct
(xmlns:xdt=http://www.w3.org/2005/xpath-datatypes). The exact usage is:

<xsl:value-of
select="days-from-duration(xdt:dayTimeDuration(dates/duration))"/> where
dates/duration is P0Y3M3DT12H

Casting to xs:duration works perfectly well: <xsl:value-of
select="xs:duration(dates/duration)"/> results in P0Y3M3DT12H0M0S

Can anyone give me an indicator of where I'm going wrong? Thanks in
advance.

Laura.



Laura Porter
Development

-------------------------------
lporter@xxxxxxxxxxxxxxxxxxxxxxx
Limehouse Software Ltd
DDI: (020) 7566 3335
Main: (020) 7566 3320
Fax: (020) 7566 3321
Limehouse Software Ltd
4th Floor
1 London Bridge
London
SE1 9BG
Manchester Office:
3rd Floor, The Triangle, Exchange Square, Manchester M4 3TR
Tel: (0161) 240 2440, Fax: (0161) 240 2441, ISDN: 08700 119 400
Check out Limehouse Software's innovative solutions
www.limehousesoftware.co.uk - Transforming the way you publish and consult on
information
The information contained in this e-mail or in any attachments is confidential
and is intended solely for the named addressee only. Access to this e-mail by
anyone else is unauthorised. If you are not the intended recipient, please
notify Limehouse Software Ltd immediately by returning this e-mail to sender
or calling 020 7566 3320 and do not read, use or disseminate the information.
Opinions expressed in this e-mail are those of the sender and not necessarily
the company. Although an active anti-virus policy is operated, the company
accepts no liability for any damage caused by any virus transmitted by this
e-mail, including any attachments.

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.