[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 14:25:59 -0700
Message-ID: <42E7FBE7.1080707@jeffrafter.com>
To: Nigel Hardy <nwh@aber.ac.uk>
CC: xmlschema-dev@w3.org
Re: Use of key/keyref - any best practices? warnings?

 > This is a pain and feels wrong when you have to do it - though the need
 > for it is obvious on reflection. The XPath steps do need prefixing. An
 > issue with this is that you will get the schema parsed and the
 > constraints you want will (silently) not be imposed if you forget the
 > prefixes.

Agreed. Except that I think it feels wrong because nothing else in the 
spec works this way. QNames are already present in other locations, why 
does the default namespace not apply to the XPath steps in content? No 
don't answer that... I know I know... it's just that it *should* work :)

All the best,
Jeff Rafter
Received on Sunday, 27 February 2005 22:26:30 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.