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

Re: Relax NG, Thoughts, etc.


no doctors today thank you
Nathan Young scripsit:

> Is your statement that XSD draws this distinction based on the fact that  
> some documents represent data that conforms to the model set forth in the 
> XSD, while relaxNG draws this distinction based on the fact that some  
> documents are structured in accordance to the grammatical rules set forth 
> while others do not?

I like to think of it like this:  RELAX NG only imposes schema-instance
constraints; that is, the rules specified in the schema dictate what
the instance can and can't contain.

XML Schema also has rules of this kind, but additionally it has
schema-schema constraints, where parts of the schema dictate what other
parts of the schema can and can't be.  For example, if the schema says
that the 'foo' type is an extension-by-restriction of the 'bar' type,
then the child elements and attributes allowed for elements of type
'foo' are a subset of those allowed for type 'bar'.

XML Schema also has instance-instance constraints, where parts of the
instance are dictated by the content of other parts.  DTDs and RELAX
NG have these only in the form of ID, IDREF, and IDREF attributes.

-- 
John Cowan  cowan@c...  http://www.ccil.org/~cowan
Does anybody want any flotsam? / I've gotsam.
Does anybody want any jetsam? / I can getsam.
        --Ogden Nash, No Doctors Today, Thank You

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.