xsl-list
[Top] [All Lists]

Re: [xsl] difference between an integer and current-dateTime()

2020-04-02 02:16:55

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

§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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>