W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2005

Re: Use of key/keyref - any best practices? warnings?

From: Jeff Rafter <lists@jeffrafter.com>
Date: Wed, 27 Jul 2005 19:37:28 -0700
Message-ID: <42E844E8.3090404@jeffrafter.com>
To: Jack Lindsey <tuquenukem@hotmail.com>
CC: mike@saxonica.com, nwh@aber.ac.uk, xmlschema-dev@w3.org

> But this is not:
>         <xs:key name="KeyClientById">
>             <xs:selector xpath="my:Clients/my:Client"/>
>             <xs:field xpath="my:@clientId"/>
>         </xs:key>

Haven't tested it, but shouldn't that be:

           <xs:field xpath="@my:clientId"/>

BTW, which validator were you using to test this? I would like to try it 
when I run my tests (when I get a chance).

Jeff Rafter
Received on Monday, 28 February 2005 03:37:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:49 GMT