W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2008

assertion failures - providing feedback

From: Andrew Welch <andrew.j.welch@gmail.com>
Date: Thu, 14 Feb 2008 16:46:35 +0000
Message-ID: <74a894af0802140846u190587ayfbabd404d33306fc@mail.gmail.com>
To: xmlschema-dev@w3.org

What is the intended way to provide feedback when an assertion fails?

Given:

<xs:assert test="@min le @max"/>

How would you say "The min attribute must be less than or equal to the
max attribute" when the test fails?

I hope it's not:

<xs:assert test="if (@min le @max) then true() else
error('http://mycomp.com', 'myerr:minlessthanmax', 'The min attribute
must be less than or equal to the max attribute')"/>



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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:02 GMT