[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Does IDREF require a matching ID?
- From: "Karr, David" <david.karr@wamu.net>
- To: "George Cristian Bina" <george@oxygenxml.com>
- Date: Mon, 5 Mar 2007 09:56:16 -0800
Perfect. Thanks.
> -----Original Message-----
> From: George Cristian Bina [mailto:george@oxygenxml.com]
> Sent: Monday, March 05, 2007 9:52 AM
> To: Karr, David
> Cc: xml-dev@lists.xml.org
> Subject: Re: [xml-dev] 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@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
> >
>
> ______________________________________________________________
> _________
>
> 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]