[Bug 2260] [xqueryx] namespace attributes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2260





------- Additional Comments From davidc@nag.co.uk  2005-09-27 09:39 -------
One further comment, even though this is closed

It may be best to make the restriction in the stylesheet generating an error
if the attribute name is xmlns _and no prefix_.

XSD schema can't restrict the content based on the non appearance of an
attribute. You probably do need to allow an attribute named fobar:xmlns
(ie xqx:prefix="foobar" and content equal to xmlns, as these are allowed even
though bad form, xmlns 1.1 says:


http://www.w3.org/TR/xml-names11/#xmlReserved
Though they are not themselves reserved, it is inadvisable to use prefixed names 
whose LocalPart begins with the letters x, m, l, in any case combination, as
these names would be reserved if used without a prefix.

Received on Tuesday, 27 September 2005 09:39:52 UTC