[Home] [By Thread] [By Date] [Recent Entries]
Perfect. Thanks. > -----Original Message----- > From: George Cristian Bina [mailto:george@o...] > Sent: Monday, March 05, 2007 9:52 AM > To: Karr, David > Cc: xml-dev@l... > Subject: Re: Does IDREF require a matching ID? > > Hi, > > 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 > http://www.w3.org/TR/xmlschema-1/#cvc-id > *** > 1 There must be no ID/IDREF binding in the item's [ID/IDREF > table] whose [binding] is the empty set. > *** > > Best Regards, > George > --------------------------------------------------------------------- > George Cristian Bina > <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger > http://www.oxygenxml.com > > 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@l... > > subscribe: xml-dev-subscribe@l... List archive: > > http://lists.xml.org/archives/xml-dev/ > > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php > > > > ______________________________________________________________ > _________ > > 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@l... > subscribe: xml-dev-subscribe@l... 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] |

Cart



