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

Re: Best Practice - beyond schema


Re:  Best Practice - beyond schema
From: "Paul Spencer" <paul@a...>

> Using an "open" language to apply further constraints has different
> benefits. 

Here are five other benefits:
 1) The global schema can be simplified
 2) <redefine> is a feature that some implementors may have left to 
  last to get 100% correct
  3) The Schematron schema lets you state the rules as exceptions to
   the global rules, which makes the relationship very clear
  4) Biting the (very small) bullet, and augmenting the main validator with
  Schematron validation makes it trivial to then add other kinds of validation
  that Schematron makes easy.  So attempting to do too much in XSD,
  rather than being conservative with XSD and conservative in Schematron.
  may actually reduce your choices for validation!
   5) Having decided to augment your grammar-based schema with Schematron
   and use XSD conservatively for the global schema, there may be less reason
   to actually use or mandate XSD: you might stick with DTDs, or if you need
   datatyping use RELAX NG. Or, allow locals to convert their global XSD
   schema into whatever they want. 

Another downside is that if you go outside XSD for basic structural constraints,
you lose the potential for some of the efficiency: however, of course, you
applications may not be those that could make use of that potential anyway. 
For example, there is no TAI (e.g. SPVI) DOM around, and XQuery is not
finished, and even when they are they may not be relevant to you.  But, of
course, they may be, too.

Cheers
Rick Jelliffe



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.