External entity declaration with empty system identifier treated as internal 
entity ...
---------------------------------------------------------------------------------------

                 Key: XERCESC-1763
                 URL: https://issues.apache.org/jira/browse/XERCESC-1763
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (DTD)
    Affects Versions: 2.8.0
         Environment: This is likely to be platform-independent.
            Reporter: Jacques Legare
            Priority: Minor


An empty system identifier in an external entity declaration causes the entity 
to be treated as internal. This appears to be because DTDScanner::scanEntityDef 
() doesn't distinguish between a NULL pointer for the system identifier and the 
first character of the system identifier being NULL. 

Meanwhile, production [11] of Section 2.3 of the XML Specification states that 
a system identifier can be empty. So, as best I can tell, the following

     <!ENTITY foo SYSTEM "">

should be declarating an external entity.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to