[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
Re: Use of key/keyref - any best practices? warnings?

> 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).

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.