W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Re: key/keyref problem

From: <kboo@ca.ibm.com>
Date: Wed, 22 Aug 2001 17:58:39 -0400
To: ht@cogsci.ed.ac.uk (Henry S. Thompson)
Cc: "Jun Wang" <t-junw@microsoft.com>, "Aung Aung" <aaung@microsoft.com>, <xmlschema-dev@w3.org>
Message-ID: <OF6798A525.72FEB62E-ON85256AB0.00784E0A@torolab.ibm.com>

> Part II:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Aung:
> >> How about this: should this work? (how/why?)
> >> C:
> >> <root>
> >> <element name="a">
> >>         <key   name="A">
> >> </element>
> >> <element name="b">
> >>         <keyref   refer="A">
> >> </element>
> >> </root>
>
> Priscilla:
> > No, because the key and keyref have to be defined in the same element,
> or
> the key has to be defined in a child element.  Neither is the case here.

> ht:
> Not quite, Priscilla -- since <b> is unconstrained, in a valid
> instance an <a> might occur inside it, so the above is OK.

Could you give me an example of a valid instance that shows the above is
ok?
- Ki
Received on Wednesday, 22 August 2001 17:59:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:23 GMT