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

Re: Current Status of XSV: shadowing of elementFormDefault

From: Roger L. Costello <costello@mitre.org>
Date: Fri, 30 Mar 2001 12:02:32 -0500
Message-ID: <3AC4BC28.B9B298A7@mitre.org>
To: xmlschema-dev@w3.org
CC: jeffrafter@earthlink.net, costello@mitre.org
"Henry S. Thompson" wrote:
> 
> Other way 'round -- the declaration in the include_d_ schema overrides
> that in the includ_ing_ schema.  Sorry if 'shadow' was a misleading
> word to use.

Let me make absolutely certain that I understand this.  I think that to
avoid any ambiguity let's consider an example.  

Example.  Suppose that I create a Camera schema, and it includes three
schemas - Nikon.xsd, Olympus.xsd, and Pentex.xsd. 

Camera.xsd
   elementFormDefault="qualified"
   include Nikon.xsd, Olympus.xsd, Pentex.xsd

Nikon.xsd
   elementFormDefault="unqualified"

Olympus.xsd
  elementFormDefault="qualified"

Pentex.xsd
  elementFormDefault="unqualified"

> the declaration in the include_d_ schema overrides that in 
> the includ_ing_ schema. 

We have three schemas being included, each with different values for
elementFormDefault (unqualified, qualified, unqualified, respectively). 
Which one will override Camera's elementFormDefault?

I believe that you really mean that Camera's elementFormDefault
overrides the elementFormDefault values found in Nikon.xsd, Olympus.xsd,
or Pentex.xsd.  Correct?  /Roger
Received on Friday, 30 March 2001 12:02:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT