Re: integrating error codes into the test suite and its schema

A little late, but perhaps still relevant.

Norm Tovey-Walsh writes:

> "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com> writes:
>> Alternative:  name the attribute 'error' and use QNames for the values:
>>
>>   <assert-not-a-grammar error="ixml:S07"/>
>
> Alternative: name the attribute ‘error’ and don’t use QNames for the values:
>
>    <assert-not-a-grammar error="S07"/>
>
> (We can take the XPath-inspired position that any NCName value is an
> ixml error code and if your implementation puts them in a namespace, you
> know what to do with them.)

Sold.

> Except if you feel strongly about allowing implementation defined
> errors, in which case, I think I can see where you’re going:
>
>    <assert-not-a-grammar error="ixml:S07 impl:abc other-impl:xyz"/>
>
> With the proviso that implementations that don’t recognize the “impl” or
> “other-impl” namespaces should ignore those values entirely.
>
> But then couldn’t we do this instead:
>
>    <assert-not-a-grammar error="S07" impl:error="abc"
>                               other-impl:error="xyz"/>

We could and should.  Agreed.

Michael


-- 
C. M. Sperberg-McQueen
Black Mesa Technologies LLC
http://blackmesatech.com

Received on Friday, 27 May 2022 14:24:12 UTC