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

Re: RE: Schematron Best Practice: A Schematron schema's a

  • From: noah_mendelsohn@u...
  • To: "Rick Jelliffe" <rjelliffe@a...>
  • Date: Tue, 17 Jul 2007 15:37:08 -0400

Re:  RE: Schematron Best Practice:  A Schematron schema's     a
Rick Jelliffe writes:

> So even though both XSD and Schematron are quite matched for the
> information they can carry, in Schematron you would expect that the user
> would get the full text, while in XSD you have to try to try tofigure 
out
> how to make your application deliver annotation information as 
> part of the
> user message.

Yes, indeed.  Interestingly, this highlights a somewhat deeper difference 
in focus between XSD and Schematron, though it's one that I only became 
conscious of after I started thinking about the integration of the two. 
Specifically, I think Schematron is implicitly focussed to a signficant 
degree on situations in which a human user (or maybe a text log) will be 
the recipient of a report on how the instance fared with respect to the 
Schema.  XSD is at least implicitly a bit more aimed at scenarios in which 
the validation will be embedded in some larger processing context, perhaps 
a database system, which will get its validation reports through some API. 
 The consistent means of providing report "text" in Schematron seems 
particularly suited to providing reports to human users, and is arguably a 
bit less convenient as the basis for an interface between software layers.

I'm not trying to over-emphasize the differences, but I've gradually come 
to believe that they are of some significance.  Indeed, one of the things 
we had to decide when putting XPath-based assertions into Schema 1.1 was 
whether to follow Schematron's lead in providing primarily textual 
reports.  In the context of XSD in particular, it seemed more useful to 
integrate a failure of an XPath assertion into the rest of the XSD 
validation-reporting frameword (I.e. [validity] properties, etc. in the 
PSVI), and indeed that's what we're currently planning to do.

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.