- From: Kasimier Buchcik <kbuchcik@4commerce.de>
- Date: Tue, 14 Dec 2004 17:20:06 +0100
- To: Jim Stanley <JimS@Media-Services.Com>
- CC: xmlschema-dev@w3.org
Hi, Kasimier Buchcik wrote: > > Hi, > > Jim Stanley wrote: > >> Just when I think I understand all this key/keyref stuff, another >> conundrum arises: >> >> I have "categories" under my root, each with one or more "property >> definitions" consisting of name-value pairs. Several of my categories >> have duplicate property definitions, something like below: >> > I don't see a way to do this, since you want only the _first_ 'propDef' > child element of the 'category' element to be used as a field. This is Correction: "the _first_ 'propDef' child element of the 'category' element to be used in the XPath of the field" > not expressible by the reduced XPath syntax of the indentity-constraint > mechanism. In your example the XPath 'propDef/name' resolves to multiple > nodes, which is not allowed. What you would need, would be > 'propDef/name[1]' - unfortunately not supported. Correction: this should be "propDef[1]/name" Kasimier
Received on Tuesday, 14 December 2004 16:20:51 UTC