W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2007

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>

> >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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:12 UTC