Subject: Re: [xsl] "1" cast as xs:boolean From: "Christian Roth" <roth@xxxxxxxxxxxxxx> Date: Mon, 3 May 2010 23:48:16 +0200 |
G. Ken Holman wrote: > From the lexical space, "1" and "true" represent the comparison > space value true(). > [...] >Now I'm not sure what you are missing from the spec. I don't see the place where the XML Schema spec actually defines this. Or, precisely: where it defines whether the lexical representation "1" is equivalent to the canonical representation "true", or is equivalent to the canonical representation "false". But meanwhile I found a sufficient specification for this (just not in the XML Schema spec, where I expected it, but actually - albeit implicitly - in XPath 2.0 Functions and Operators): <http://www.w3.org/TR/xquery-operators/#func-true> Here, it states that true() "Returns the xs:boolean value true. Equivalent to xs:boolean("1")", from which I conclude that "1" is mapped to the canonical value "true". Thanks, Christian
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] "1" cast as xs:boolean, G. Ken Holman | Thread | RE: [xsl] "1" cast as xs:boolean, Michael Kay |
Re: [xsl] "1" cast as xs:boolean, G. Ken Holman | Date | RE: [xsl] "1" cast as xs:boolean, Michael Kay |
Month |