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

RE: Referencing attributes

From: Mary Holstege <holstege@mathling.com>
Date: Fri, 30 Mar 2007 04:42:17 -0700
To: xmlschema-dev@w3.org
Message-ID: <op.tpyd47u8pwddar@d600-59>
RE: Referencing attributes


The WG discussed this 2007-03-28. It is tracked as bugzilla #4346.
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4363

Conclusions:

There is no rule in the specification that forbids referring to attributes
in the http://www.w3.org/2001/XMLSchema-instance namespace.

However, as shown, schema document is not valid because it lacks an import.
The specification requires imports, which serve a dual purpose of
identifying the resource containing the schema definitions (unnecessary in
this case) and licensing the import of definitions from that namespace.

However, note that even if the schema were valid, it would be ineffective.
The rules in Validation Rule: Element Locally Valid (Complex Type) mean
that the attribute use settings such as default values will not have any
effect because they are not consulted for the attributes in the
http://www.w3.org/2001/XMLSchema-instance namespace.

For the WG

//Mary
Received on Friday, 30 March 2007 11:43: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.