[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: Michael Kay <mike@saxonica.com>
Date: Sun, 27 Feb 2005 23:28:58 -0000
Message-Id: <200502272329.j1RNT5o25908@IPOfCard1.guest-tek.com>
To: <lists@jeffrafter.com>, "'Nigel Hardy'" <nwh@aber.ac.uk>
Cc: <xmlschema-dev@w3.org>
RE: Use of key/keyref - any best practices? warnings?

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

XSLT 1.0/XPath 1.0 decided that when QNames appeared in attribute content,
they would behave like attribute names - that is, the default namespace
would not apply; but when XML Schema 1.0 introduced namespaces in their
content, they decided they would behave like elements - the default
namespace *would* apply. So where you have both conventions in the same XML
document, it is indeed confusing.

We do try to coordinate, honest!

Michael Kay
http://www.saxonica.com/
Received on Sunday, 27 February 2005 23:29:17 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.