- From: Joan Pujol <joan.pujol@ima.udg.es>
- Date: Thu, 08 Nov 2001 10:34:00 +0100
- To: xmlschema-dev@w3.org
Hi, Some days ago Jeni Tennison said: > The key reference identity constraint must defined be on an element > declaration for an element that (a) contains all the elements that you > want to reference and (b) contains all the elements that hold > references. Again, this is the doc element, so the element declaration > for the doc element needs to contain the xs:keyref elements as well: First of all, a lot of thanks Jeni ;-) Because it has solutioned me a lot of nightmares with keyrefs. The problem that I had is that I dind't know that keyrefs must be in a element that have the references and the referenced elements. I had the problem because the XMLPrimer document don't say it, and I tried to read the XMLSpec but it's too dificult for me and my english. In fact, now, I can't find where this restriction is sayed. I suppose that it's in 3.11.5 Identity-constraint Definition Information Set Contributions, but I can't understand it. In fact, the unique pharagraf that I understand -a little ;-)- says: ".. [from 3.11.5] NOTE: The complexity of the above arises from the fact that keyref identity-constraints may be defined on domains distinct from the embedded domain of the identity-constraint they reference, or the domains may be the same but self-embedding at some depth. In either case the ·node table· for the referenced identity-constraint needs to propagate upwards, with conflict resolution. .." Some can give me a little light on this obscurity? PD: Recently at our department we had problems with mail server. And I sent an old mail with topic Re: min/maxOccurs, can be expressed in a schema?. Ignore it. -- --- Joan Jesús Pujol Espinar PTS Sistemes Departament IMA
Received on Thursday, 8 November 2001 04:34:34 UTC