Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: RE: RE: RE: unique question

From: "Michael Kay" <mike@--------.--->
To: "'Markus Gamperl'" <markus.gamperl@---.-->, <xmlschema-dev@--.--->
Date: 2/15/2007 10:31:00 AM
> 
> But why isn't the default namespace enough within xs:unique? 
> Is this the definition of xs:unique? What's the sense of the 
> default namespace...

For better or worse, the XPath 1.0 specification states that an unprefixed
name in a path expression represents a name in no namespace, regardless of
any default namespace that might be in scope.

The original motivation for this, I think, was the scenario where XPath is
embedded within XSLT and the default namespace for the source document is
different from that for the result document. But like everything else to do
with namespaces, it has tripped a lot of people up over the years.

XPath 2.0 makes the default namespace for unprefixed element names something
that can be defined in the context, so XML Schema could, if it wished, say
that it is taken from the default namespace of the enclosing element.

Michael Kay
http://www.saxonica.com/


From markus.gamperl@g... Thu Feb 15 11:04:24 2007
Receiv


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent