Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Another multi-field key question [Thread Next] Re: Another multi-field key questionTo: Jim Stanley <JimS@--------------.---> Date: 12/14/2004 6:20:00 PM 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 From mike@s... Thu Dec 16 00:18:37 2004 Received: from lisa.w3.org ([ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
