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

RE: key/keyref problem

From: Priscilla Walmsley <priscilla@walmsley.com>
Date: Fri, 17 Aug 2001 11:40:08 -0400
To: "'Aung Aung'" <aaung@microsoft.com>, <xmlschema-dev@w3.org>
Message-ID: <005a01c12733$a1b566c0$1ab0153f@xmls>
MessageHello Aung,

Yes, there is indeed an error in the example in the Primer.  There is a
correct example in section 3.11.2 of Part 1: Structures, but it only shows
keys and keyrefs defined within the same element declaration. (Not a key
defined within a child element.)


Priscilla Walmsley
Vitria Technology
  -----Original Message-----
  From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]On
Behalf Of Aung Aung
  Sent: Wednesday, August 15, 2001 1:46 PM
  To: xmlschema-dev@w3.org
  Subject: RE: key/keyref problem

  Hi Priscilla and Eric,

  I am just digging through key/keyref to find out other understand the
spec. Your discussion on the scope of key/key make some sense, however,

  IF that is the case, that "Yes, that's correct.  The node table for the
key would not make it down to the sub element.  The instance is definitely
invalid.  I'm not sure that it is considered an error in the schema - there
doesn't seem to be a specific constraint on this.  But, you would never want
to write a schema that way because the ref attribute could never have a
valid value.",

  THEN, the example in Prima-0 is totally wrong?
http://www.w3.org/TR/xmlschema-0/#report.xsd. It has a key name="pNumKey" is
defined on the parent but the keyref name="dummy2" is a sub local element?
And it goes in length to explain how it works.

  How can that be happenning, how do one expects anyone to correctly
implement and use key/keyref across different implementation? I am just
wondering whether, Henry, can you post out some basic examples on key/keyref
to clear up some of these spec myth?

Received on Friday, 17 August 2001 11:43:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC