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

RE: Recursive XSD with targetNamespace

From: Michael Kay <mike@saxonica.com>
Date: Tue, 18 Nov 2008 16:31:10 -0000
To: <noah_mendelsohn@us.ibm.com>
Cc: "'Todd Moon'" <tmrfcm@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <F7784006B80E4671840212D08BC0028F@Sealion>
RE: Recursive XSD with targetNamespace

> 
> > Very little that's in XSD makes intuitive sense - get used to it.
> 
> I agree that there's all to much that doesn't but I'm not 
> sure I agree on this one.
>  

All I meant was, don't imagine you can guess what the rules are without
reading the spec.

It actually took me quite a while to grasp the simple rule that "name"
attributes are implicitly in the target namespace, while "ref" attributes
aren't. It's a very easy rule when you know it, but it's not one you could
guess a priori. 

And of course it depends where you are coming from; many people might assume
that it works the same way as XSLT, but it doesn't. In XSLT both the
defining name and references to other objects are QNames, and both handle
prefixes in the same way.

Michael Kay
http://www.saxonica.com/
Received on Tuesday, 18 November 2008 16:31:55 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.