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

Re: declaring xml:id attributes

From: Wolfgang Jeltsch <wolfgang@jeltsch.net>
Date: Fri, 15 Sep 2006 13:57:02 +0200
To: xmlschema-dev@w3.org
Message-Id: <200609151357.02433.wolfgang@jeltsch.net>
Re: declaring xml:id attributes

Am Freitag, 15. September 2006 03:22 schrieben Sie:
> You need a separate schema with namespace of xml, define your xml:id
> attribute there, and import it to your schema and use <xsd:attribute
> ref="xml:id"/>
>
> Huseyin Ulger

Ah, thanks.  This is, of course, very logical.

I have a related question.  As far as I remember, the xml:id specification 
says that an xml:id attribute must be declared as being of type ID.  Does 
this mean that it's illegal to declare an xml:id attribute which has a 
restriction of xsd:ID as its type?

If not, there is still one issue.  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.

Best wishes,
Wolfgang
Received on Friday, 15 September 2006 11:57:18 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.