[closed] Re: Test err-c0016-001.xml and xs:boolean

Norman Walsh <ndw@nwalsh.com> writes:

> 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.

There was general agreement, so I've fixed the test.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Any idiot can face a crisis; it's this
http://nwalsh.com/            | day-to-day living that wears you
                              | out.--Anton Chekhov

Received on Wednesday, 8 April 2009 17:28:51 UTC