|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: What is the best way to cast integer to string
Mike wrote:
> A "Basic XSLT Processor" supports atomic values conforming to the
> built-in types defined in XML Schema. So you can do things like
>
> xs:duration("P10H30M") + xs:duration("P12H15M")
>
> to add two durations.
Except you can't because you can only add two yearMonthDurations or
two dayTimeDurations. Mike meant:
xdt:dayTimeDuration("PT10H30M") + xdt:dayTimeDuration("PT12H15M")
(Also note the "T" in the duration syntax, which separates the
year/month/day from the hours/minutes/seconds.)
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








