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

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>
RE: Use of global attrbutes

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

No.

 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
http://www.saxonica.com/
Received on Tuesday, 5 September 2006 22:23:58 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.