[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

Subject: Re: Re: What is the best way to cast integer to string in X SLT2?
From: Andrew Watt <andrew@xxxxxxxxxxxxxx>
Date: Tue, 13 May 2003 15:34:07 +0100
andrew watt
At 14:47 13/05/2003 +0100, you wrote:
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.)

Jeni,


I hope DP will be able to resist a comment to the effect, "Well if Michael Kay can't get it right what hope is there for the rest of us?" :)

You can resist the temptation, can't you Dave? :)

I think, if we want the XSLT community to be able to use XSLT 2.0 dates / times / durations effectively some sort of wallpaper matching chart will be needed for a time.

Andrew Watt



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.