W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2008

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>

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

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