W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2006

RE: Use of global attrbutes

From: Michael Kay <mike@saxonica.com>
Date: Tue, 5 Sep 2006 23:23:34 +0100
To: "'Pete Cordell'" <petexmldev@tech-know-ware.com>, <xmlschema-dev@w3.org>
Message-ID: <00fe01c6d139$edb59800$6401a8c0@turtle>

> If a global attribute is declared in an XSD file, then in an 
> XML instance conforming to that XSD is it automatically valid 
> for an instance of that global attribute to appear in any 
> instance of a complex type,


 or is it necessary for the XSD to 
> define an attribute use of the global attribute within the 
> complex type definition.

Yes. Though it's often done using a wildcard (x:anyAttribute).

Michael Kay
Received on Tuesday, 5 September 2006 22:23:58 UTC

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