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

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

From: James Fuller <james.fuller.2007@gmail.com>
Date: Mon, 16 Mar 2009 20:35:51 +0100
Message-ID: <a0ad8ffe0903161235y44e9b95bj87afee24f6cfe09f@mail.gmail.com>
To: Norman Walsh <ndw@nwalsh.com>
Cc: public-xml-processing-model-comments@w3.org
On Mon, Mar 16, 2009 at 8:27 PM, Norman Walsh <ndw@nwalsh.com> wrote:
> 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.

+1 to that

J
Received on Monday, 16 March 2009 19:36:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 19:36:26 GMT