OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Does IDREF require a matching ID?


If you have an IDREF attribute in the schema it is not required for that 
schema to define an ID attribute. However, when you validate an instance 
document the value for the IDREF attribute needs to be specified in a 
component (element or attribute) that have an ID type or a type derived 
form ID. The part of the specification related with this is
1 There must be no ID/IDREF binding in the item's [ID/IDREF table] whose 
[binding] is the empty set.

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Karr, David wrote:
> This may be a trivial question in this audience, but if you have an
> attribute defined in the schema as "xs:IDREF", does there also have to
> be at least one attribute defined in the schema as "xs:ID", and a
> similar relationship in the XML instance document, with the IDREF value
> matching at least one ID attribute?  If this relationship does not hold
> true, does this mean that the document is not valid?
> If so, can you point me somewhere in the specs that state this?
> _______________________________________________________________________
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS