axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9963] - DOM2Writer doesn't treat the "xml" namspace specially
Date Tue, 18 Jun 2002 16:40:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9963>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9963

DOM2Writer doesn't treat the "xml" namspace specially





------- Additional Comments From pratik.datta@peregrine.com  2002-06-18 16:40 -------
I am not sure if this is a Microsoft bug.

Even if I open the xsd file in Internet explorer, it says


The namespace prefix is not allowed to start with the reserved string "xml". 
Line 7, Position 38 
     <xsd:documentation xml:lang="en" 
xmlns:xml="http://www.w3.org/XML/1998/namespace">
-------------------------------------^



I looked up the XML namespaces spec, and it says 

Namespace Constraint: Leading "XML"
Prefixes beginning with the three-letter sequence x, m, l, in any case 
combination, are reserved for use by XML and XML-related specifications. 

Namespace Constraint: Prefix Declared
The namespace prefix, unless it is xml or xmlns, must have been declared in a 
namespace declaration attribute in either the start-tag of the element where 
the prefix is used or in an an ancestor element (i.e. an element in whose 
content the prefixed markup occurs). The prefix xml is by definition bound to 
the namespace name http://www.w3.org/XML/1998/namespace. The prefix xmlns is 
used only for namespace bindings and is not itself bound to any namespace name. 


So I guess Microsoft is doing the right things after all.

I think DOM2Writer should not generate a prefix declaration for xml. What do 
you say?

Pratik

Mime
View raw message