[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: assertion failures - providing feedback

From: Andrew Welch <andrew.j.welch@gmail.com>
Date: Thu, 14 Feb 2008 17:44:19 +0000
Message-ID: <74a894af0802140944u6085d509s2709c25025a1c6b2@mail.gmail.com>
To: "Michael Kay" <mike@saxonica.com>
Cc: xmlschema-dev@w3.org
Re: assertion failures - providing feedback

On 14/02/2008, Michael Kay <mike@saxonica.com> wrote:
> Given that XML Schema doesn't provide any facilities for customising error
>  messages anywhere else (e.g. for failures to match the grammar of a complex
>  type, failure to match a regular expression, key/keyref failures, etc) do
>  you think there is a good case to treat assertions differently? Or is it
>  just an expectation that comes from what Schematron does?

I don't know Schematron, but Java assertions and JUnit both have a
mechanism for it so it seems reasonable to expect it.

Given the possibilities of what you can check with an assertion, it
would be helpful to provide a message rather than the code when the
test fails.


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
Received on Thursday, 14 February 2008 17:44:30 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.