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

RE: declaring xml:id attributes

From: Michael Kay <mike@saxonica.com>
Date: Fri, 15 Sep 2006 13:08:41 +0100
To: "'Wolfgang Jeltsch'" <wolfgang@jeltsch.net>, <xmlschema-dev@w3.org>
Message-ID: <008601c6d8bf$af4c8aa0$6601a8c0@turtle>
RE: declaring xml:id attributes

> If I want to restrict the 
> type of the xml:id attributes of one kind of element in one 
> way and the type of the xml:id attribute of another kind of 
> element in a different way then I seem to have a problem 
> since with the approach you described you cannot declare 
> different variants of xml:id attributes for different kinds 
> of elements.

In XMLSchema, if an attribute is in a namespace, and it's a different
namespace from its parent element, then the attribute declaration must be a
global declaration, which means it can't vary from one element to another.

Michael Kay
http://www.saxonica.com/
Received on Friday, 15 September 2006 12:09:06 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.