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

[Bug 9539] Assertion error reporting

From: <bugzilla@jessica.w3.org>
Date: Sat, 17 Apr 2010 11:34:12 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1O36Hs-0005KY-Cr@jessica.w3.org>

Mukul Gandhi <gandhi.mukul@gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |gandhi.mukul@gmail.com

--- Comment #3 from Mukul Gandhi <gandhi.mukul@gmail.com>  2010-04-17 11:34:17 ---
(In reply to comment #0)
> A Saxonica client wrote today asking for facilities to specify the error
> message that should be produced when validation against an assertion fails.
> I was able to point him in the direction of Saxon's extension in this area,
> documented here:
> http://www.saxonica.com/documentation/schema-processing/extensions11/saxon.message.html
> The client commented that it would be extremely useful to have this as a
> standard facility in the spec.
> Note that Saxon makes this available on all facets, not only xs:assert. It can
> be very useful, for example, on the xs:pattern facet.

+1 from me for this enhancement.

I wish to know the opinion of WG, the pros & cons of following two approaches,
for this need:
<xs:assert test="...">
           error message ...

b) xs:assert test="..." message="..."

The advantage of, the means b) to me looks, that it is more easy to specify &
very much less verbose (hence easy for schema authors to specify), than means,

The advantage, of a) looks to me, that we can re-use an existing framework, of
annotations, for assertions messages.

I have a feeling, to go for solution, b) (the advantage of less-verboseness, of
2nd option looks to me, many folds if we have lot of assertions in the schema).


Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 17 April 2010 11:34:19 UTC

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