xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18728] New: - Entity names, PI targets, or notation names contain colon.
Date Fri, 04 Apr 2003 23:11:28 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=18728>.
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=18728

Entity names, PI targets, or notation names contain colon.

           Summary: Entity names, PI targets, or notation names contain
                    colon.
           Product: Xerces2-J
           Version: 2.3.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: nmehrega@ca.ibm.com
                CC: nddelima@ca.ibm.com


According to section 7 of Namespaces in XML 1.1, "Conformance of Documents":

No entity names, PI targets, or notation can contain the colon character.
Xerces-J doesn't seem to do a check for this.  The following XML documents go
undetected:

==================== Example 1 ==================== 
<?xml version='1.1'?>

<!DOCTYPE root [
  <!ELEMENT root EMPTY>
  <!NOTATION nota:tion SYSTEM "program.exe">
  ]>
<root/>

<!-- Notation name contains a colon -->

==================== Example 2 ==================== 

<?xml version='1.1'?>
<?tar:get data?>
<root/>

<!-- PI Target contains a colon -->

==================== Example 3 ==================== 

<?xml version='1.1'?>
<!DOCTYPE root [
  <!ELEMENT root (#PCDATA)>
  <!ENTITY ent:ity "data">
  ]>
<root>
  &ent:ity;
</root>

<!-- Entity name contains a colon -->

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


Mime
View raw message