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

Re: difference between an integer and current-dateTime

Subject: Re: difference between an integer and current-dateTime()
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Apr 2020 07:16:48 -0000
Re:  difference between an integer and current-dateTime
> Error at char 28 in expression in xsl:value-of/@select on line 10 column 69
of trf1.xsl:
>   FORG0001  Invalid duration value 'PT2.5H' (H is out of sequence)
>   In template rule with match="/" on line 8 of trf1.xsl
> Invalid duration value 'PT2.5H' (H is out of sequence)
>
> What I'm not doing correctly?
>

Surely the error message is pretty clear?

See https://www.w3.org/TR/xmlschema-2/#duration

B'3.2.6.1  The values of the Year, Month, Day, Hour and Minutes components are
not restricted but allow an arbitrary unsigned integer, i.e., an integer that
conforms to the pattern [0-9]+

Michael Kay
Saxonica

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.