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

RE: SV: What's a valid instance...James Clark

From: Michael Kay <mike@saxonica.com>
Date: Fri, 23 Mar 2007 08:51:19 -0000
To: "'Bryan Rasmussen'" <BRS@itst.dk>, <xmlschema-dev@w3.org>
Cc: "'C. M. Sperberg-McQueen'" <cmsmcq@acm.org>
Message-ID: <009101c76d28$6d1dd6e0$6401a8c0@turtle>
RE: SV: What's a valid instance...James Clark

> >In addition to the rationales you mention, I'd also mention that 
> >specifying a required root tends to make reuse of schema modules in 
> >other contexts harder.
> 
> Surely that just means that the specification has to take 
> that into account?
> Some wording about how the required root is determined via 
> import order and so forth?

You missed the point. In the real world you usually have a family of
document or message types that share components in common (often hundreds of
them). There are many problems in managing such families of messages, and
XML Schema doesn't solve all of them, but at least it recognizes the
problem. 

I'm not saying it would be bad to have an optional clause in the schema that
says whether or not a given element declaration is allowed to serve as a
validation root; but it's certainly highly desirable to allow a schema to
define lots of possible validation roots.

Michael Kay
http://www.saxonica.com/
Received on Friday, 23 March 2007 08:51:24 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.