W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > March 2009

RE: Test err-c0016-001.xml and xs:boolean

From: <Toman_Vojtech@emc.com>
Date: Tue, 17 Mar 2009 09:43:53 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870EE3D66B@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>
> 
> The test err-c0016-001.xml asserts that 
> 
>     <p:compare name="step1">
>       <p:with-option name="fail-if-not-equal" select="1">
>       ...
> 
> should throw err:XC0016 because fail-if-not-equal must be a boolean
> and "1" is neither "true" nor "false".
> 
> But "1" is an acceptable lexical value for "true" according to W3C XML
> Schema so either the test is wrong or we're being more restrictive
> than the spec currently supports.
> 
> I'm inclined to say that we should accept whatever XML Schema accepts,
> just because that's easier to explain and no harder to implement.
> According to that interpretation, it's the test that's incorrect.
> 
> Thoughts?

I agree. I also believe this is the only case where we differ from XML
Schema; for other datatypes, there seems to be a good match.

Regards,
Vojtech
Received on Tuesday, 17 March 2009 13:44:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 March 2009 13:44:56 GMT