[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Anderson, John" <John@B...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 31 Jul 2001 17:04:11 +0200

Title: Question on id constraints

Hi,

I'm trying to decipher the schema spec on identity contstraint validity, but perhaps someone can save me a few hours and a few aspirin.

If I have:
<keyref name="ref" refers="pk" > ...

1. Is the key "pk" required to be defined physically earlier in the schema file (I would have thought not)
2. Is pk required to be defined on the same element as ref, or on a descendant or anscetor of it, or just anywhere in the same schema?

Thanks,

John

_______________________________________________________
John Anderson

CTO BarbadosoftTM  Pure intelligent XML
+31 (0)20 750 7582 / +31 (0)6 65 347 448 / www.barbadosoft.com

- putting the "X" in "XML" -


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member