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

Re: [XML Schema 1.1] defaultAttributes only apply within the schema file, not to imported or included schemas, correct?

From: C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>
Date: Tue, 14 Jul 2009 07:14:44 -0600
Cc: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-Id: <01582E20-A9F6-4BA1-B005-89753B23BAC2@blackmesatech.com>
To: "Costello, Roger L." <costello@mitre.org>
Re: [XML Schema 1.1] defaultAttributes only apply within the schema  file

On 14 Jul 2009, at 06:48 , Costello, Roger L. wrote:

>
> Hi Folks,
>
> Below I show BookStore.xsd. It specifies defaultAttributes. It  
> imports Book.xsd, which also has a defaultAttributes.
>
> The defaultAttributes specified in BookStore.xsd only applies to the  
> complexTypes within that file, and the defaultAttributes specifies  
> in Book.xsd only applies to the complexTypes within that file,  
> correct?

Yes, the defaultAttributes applies only to types defined
in the schema document for which the defaultAttributes
attribute is specified.  Types defined in other schema
documents are not affected, whether they are included or
acquired via import or by some other means.

To cite chapter and verse:  this property follows from

   - the rule for {attribute uses} given in section
     3.4.2.4 Mapping Rule for Attribute Uses Property,
     and
   - the rule for {attribute wildcard} given in section
     3.4.2.5 Mapping Rule for Attribute Wildcard Property


-- 
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com
* http://cmsmcq.com/mib
* http://balisage.net
****************************************************************
Received on Tuesday, 14 July 2009 13:15:23 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.