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

Re: What the default datatype of an stylesheet paramet

Subject: Re: What the default datatype of an stylesheet parameter ?
From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx>
Date: Fri, 25 Nov 2011 15:44:08 +0100
Re:  What the default datatype of an stylesheet paramet
One more time, thank you very much both of you for your answers and reactivity (even quite early in the morning ;-))
It's all clear now, and really interresting to go deeper in how datatype are handled in XSL.
I'll keep this post in mind for my further XSL dev.


Have a good week end,

Kind regards,
Matthieu.

Le 25/11/2011 11:53, G. Ken Holman a icrit :
At 2011-11-25 10:48 +0000, Michael Kay wrote:
Ken wrote:
When the types are not the same, the processor reduces one or both of the sides to a common type. The empty sequence is boolean false, and the empty string is boolean false, so when both are converted to boolean, they are the same.
Not quite. In XSLT 2.0, '=' compares all pairs of values across the two sequences. If there are no pairs, the result is always false. If there are pairs, untypedAtomic values are converted to the other type, and numeric promotion takes place, but you certainly won't see both sides converted to booleans.

Yes, of course, please forgive my haste in answering ... too early in the morning (05:00) and I rushed an answer before attending a teleconference. I really should wait until I've properly started my day.


. . . . . . . . . . Ken


-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/t37DVX Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal




--
Matthieu Ricaud
IGS-CP
Service Livre numirique

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.