- From: Guillaume Rousse <rousse@ccr.jussieu.fr>
- Date: Sat, 1 Sep 2001 18:30:47 +0200
- To: xmlschema-dev@w3.org
- Cc: ht@cogsci.ed.ac.uk (Henry S. Thompson)
Ainsi parlait Henry S. Thompson : > > > 3) Can <foo id='a'> appear anywhere other than inside <foos>? > > > > With an id attribute, yes. Without, no > > Sorry, I phrased this badly so I'm not sure I understand your answer. > Try again: 3) Does <foo> appear, with or without 'id', outside a <foos>? > > It appears that the answer is "yes, but only without an ID" My phrasing was not very better :-) You're right here. > > So i guess i must either declare the key in root element with an > > additional [@id] assertion, or in the <foos> element declaration. > > I think if I understand correctly that's right, either will work. > > Was my initial supposition it would make fooKey local to this element > wrong ? > > Not sure I understand what you mean. Yes, fooKey is local to <foos>. > But you've said <foo id=''> only occurs inside <foos>, so what does > that matter? Note that 'local to <foos>' does not mean 'catches only > immediated children of <foos>' -- the pattern './/foo' will find all > <foo > at any depth. I mean: if fooKey is local to <foos> element, can i refer to it for a keyref defined in either <bars> element (a <foos> sibling), or in root element ? "Local" for me means clearly no. -- Guillaume Rousse <rousse@ccr.jussieu.fr> GPG key http://bohm.snv.jussieu.fr/~rousse/gpgkey.html
Received on Saturday, 1 September 2001 12:32:20 UTC