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

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>

> 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
Received on Friday, 15 September 2006 12:09:06 UTC

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