W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2010

Re: [Bug 9539] Assertion error reporting

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Mon, 26 Apr 2010 17:25:50 +0530
Message-ID: <h2h7870f82e1004260455p71ac678cvd58d1e6eb80973cd@mail.gmail.com>
To: www-xml-schema-comments@w3.org
Hi Pete,
    I rethought over the error message reporting for assertions. I
believe, the WG should not make this feature (i.e, providing a syntax,
for assertions error reporting) mandatory in the XSD 1.1 language.
This will make, assertions instruction consistent, with all other XSD
instructions (like, say simpleType/complexType/element & all others).

But the XSD 1.1 spec, could provide guidelines to implementors,
perhaps along following lines:
It is strongly encouraged, that implementers should provide a
mechanism to schema authors, a means to provide user-defined error
message, for assertions failure. If implementations, provide a means
to specify error message for assertions failure, then how
implementations accomplish this, is "implementation defined". The
possible suggested means to do this, are to specify, assertions error
message in the assertions 'annotation' or via a processor specific,
assertions attribute like, "message" (in a non-schema namespace).

A custom error message by schema authors, for assertions failure,
encourages less-verbose and domain specific error messages.

If implementations, do not provide a means to schema authors to
override, the processor specific error messages, then assertions error
reporting by implementations is, "implementation defined".

On Mon, Apr 26, 2010 at 3:38 PM, Pete Cordell <petexmldev@codalogic.com> wrote:
> Hi Mukul,
> As we are working on a new version I don't believe we have to be restricted
> by the constraints of the existing 1.0 syntax.  I'm sure I'll be put right
> if that's not the case!
> Regards,
> Pete Cordell
> Codalogic Ltd
> Interface XML to C++ the easy way using XML C++
> data binding to convert XSD schemas to C++ classes.
> Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
> for more info

Mukul Gandhi
Received on Monday, 26 April 2010 11:56:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:10 UTC