Re: xmlns:xml = "???"
At 08:35 PM 28/01/02 +0000, Michael Kay wrote: >(1) Is it legal to specify > xmlns:xml="http://www.w3.org/XML/1998/namespace"? > >(2) Is it legal to specify > xmlns:xml="anything else"? Both of those are perfectly legal XML 1.0. The namespaces spec says nothing about these aside from the "by definition" phrase that you quote. The other question you don't ask is whether it's legal to bind some other prefix to the http://www.w3.org/XML/1998/namespace namespace. So this is a shortcoming in the rec. I think we can all agree though that doing any of these things would be really bad practice. >Supplementary questions: > >(3) Do xml:space and xml:lang have any defined meaning if >xmlns:xml="anything else" is specified? Probably they do, since XML 1.0 binds them to the prefix "xml:". And probably if that namespace name were bound to some other prefix, then "otherprefix:lang" wouldn't work. But once again, this would be really really stupid, and if any software raised an error and threw it out on grounds of gross stupidity, I think that would be within the spirit of the spec. >(4) Is it legal to specify > xmlns:xmlns="anything"? >(and if not, where does it say so?) Almost the same answer as for (1) and (2), but I could probably make a stronger case that this is forbidden by the namespace rec's assertion that this prefix "is not bound to any namespace name". -Tim
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format