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

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
assertion failures - providing feedback

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

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.