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

RE: Separate data from rules ... is the XML Schema 1.1 <as

  • From: rjelliffe@allette.com.au
  • To: "Michael Kay" <mike@saxonica.com>
  • Date: Thu, 18 Jun 2009 17:04:36 +1000 (EST)

RE:  Separate data from rules ... is the XML Schema 1.1     <as
Michael Kay wrote
> I don't think the split between
> structural rules and business rules equates at all closely to the split
> between grammar and predicates.

I agree.

But I would say that the demarcation between what constraints to put in
XSD (whether in the grammar or in assertions) or RELAX NG and in a
subsequent Schematron schema (or in derived XSD schemas) should reflect or
align with the institutional arrangements of schema ownership,
responsibility and maintenance.

At one extreme, if a code list (e.g. a product code list or country code
list) is maintained by another organization, then it may be that the XSD
schema should not enumerate the values but just give the regex pattern
they conform to (e.g.  [A-Z]{2-3} ) with the external code list validated
by the separate Schematron schema.

Or, it may be that the purpose of the schema is to collect as many
different constraints as possible in order to be the prime documentation
for developers,regularly updated and maintained. In that case, an
enumeration would be appropriate.

Cheers
Rick Jelliffe


[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.