You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/02/27 23:05:21 UTC

DO NOT REPLY [Bug 17508] New: - Illegal (XML 1.0 & XML 1.1) namespace declarations are not rejected

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=17508>.
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=17508

Illegal (XML 1.0 & XML 1.1) namespace declarations are not rejected

           Summary: Illegal (XML 1.0 & XML 1.1) namespace declarations are
                    not rejected
           Product: Xerces2-J
           Version: 2.3.0
          Platform: All
               URL: http://www.w3.org/TR/REC-xml-names/
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Other
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: mrglavas@ece.uwaterloo.ca


Xerces does not reject documents with illegal namespace names. Currently any 
attribute value which matches the AttValue production is accepted as a 
namespace 'URI'.

For instance this document is currently accepted by Xerces:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:a="not a valid URI">
 <a:child/>
</root>

As per the namespace recs quoted below, the attribute value for a namespace 
declaration must be a URI reference (or IRI for XML 1.1).

>From the Namespaces Rec (http://www.w3.org/TR/REC-xml-names/):
"An XML namespace is a collection of names, identified by a URI reference 
[RFC2396], which are used in XML documents as element types and attribute 
names."

"The attribute's value, a URI reference, is the namespace name identifying the 
namespace."

>From the Namespaces in XML 1.1 Rec (http://www.w3.org/TR/xml-names11/):
"An XML namespace is identified by an IRI reference; element and attribute 
names may be placed in an XML namespace using the mechanisms described in this 
specification."

"The attribute's normalized value must be either an IRI reference � the 
namespace name identifying the namespace � or an empty string."

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org