- From: Olivier B <obernou@yahoo.fr>
- Date: Thu, 6 Mar 2003 16:55:50 +0100 (CET)
- To: xmlschema-dev@w3.org
hi, I've got a problem with keys : I want to define key for 2 attributes on different levels. for example : <person name="bob" > <car color="blue"> <car color="black"> </person> <person name="sally"> <car color="blue"> <car color="yellow"> <car color="red"> </person> and I can't have this key : <xs:key name="test"> <xs:selector xpath="person"/> <xs:field xpath="@name"/> <xs:field xpath="car/@color"/> </xs:key> but how can I do ? I thought I could retrieve the first attribute on the second element, and then I would have <car color="yellow" name="jojo"> ? but i don't want to do this manually everytime I create a new object Olivier ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Received on Thursday, 6 March 2003 11:02:39 UTC