W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

Re: [schema] Re: Forcing a certain document element

From: Robert Braddock <stormwarden@bigfoot.com>
Date: Fri, 12 Jan 2001 13:31:18 -0600
To: xmlschema-dev@w3.org
Message-ID: <20010112133117.Q29280@concordant-thought.com>
> > Can't you design your schema to have only one global element definition

> In the words of Richard Nixon (allegedly :-) "You could do that, but
> it would be wrong."  By which I mean you're right, if you wrote such a 
> schema, it would have the desired effect, but that's a pretty
> roundabout way to get it.

I disagree. Given that the only way to avoid polluting my instance documents
with redundant schema information is to insure that all elements are locally
defined (except the top element, of course), it's hardly roundabout. In
fact, since combining other schemas with mine relies on linking into them
without violating this property, I appreciate if people design without
global elements (I just use global complexTypes where I had global elements

Robert Braddock
Received on Friday, 12 January 2001 14:31:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:49 UTC