W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2003

RE: Namespace considerations

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 5 Mar 2003 23:45:57 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E621060453E110@daemsg02.software-ag.de>
To: Jonathan Robie <jonathan.robie@datadirect-technologies.com>, Michael Rys <mrys@microsoft.com>, Caroline Rioux <crioux@decisionsoft.com>
Cc: public-qt-comments@w3.org

> The xs: prefix is predefined, bound to 
> "http://www.w3.org/2001/XMLSchema", 
> so there is no need to 
> bind anything to xs.  I'm trying to remember if we 
> outlawed redefining this prefix - I think not, but I also 
> asked the WG the 
> question, and I will reply here if I find out that I was wrong.
> So under the assumption that you actually can redefine this 
> prefix, if you 
> do not import the schema, these types will not be predefined, 
> and you will 
> get a type error, since the system does not know what types you are 
> referring to.
> Jonathan 

That answer is correct for XQuery. I don't recall whether the original
question was about XPath or XQuery. In XPath, all namespace prefixes except
"xml" have to be defined explicitly.

Michael Kay 
Received on Wednesday, 5 March 2003 17:46:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:11 UTC