Re: key problems

 --- "Henry S. Thompson" <ht@cogsci.ed.ac.uk> a écrit : >
Olivier B <obernou@yahoo.fr> writes:

Yes, that's my problem (of course, it's not for cars or
colors).

is it possible to copy automaticaly the attribute from
person in car : 
<car color="blue" name="bob"> for example ?

> I'm not sure I understand your 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>
> 
> Do you mean that you want the key for the first person to
> be
> <'bob','blue'> and the key for the second person
> <'sally','blue'>?
> 
> This would be possible if the following key definition
> were allowed
> 
> <xs:key name="test">
>  <xs:selector xpath="person"/>
>  <xs:field xpath="@name"/>
>  <xs:field xpath="car[1]/@color"/>
> </xs:key>
> 
> But as things stand that's not allowd.
> 
> Feel free to send a suggestion for a 1.1 or 2.0
> requirement to
> www-xml-schema-comments@w3.org
> 
> ht

___________________________________________________________
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:15:21 UTC