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

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

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"/>

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Wednesday, 25 May 2022 08:43:49 UTC