You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/12/02 18:54:40 UTC

DO NOT REPLY [Bug 14996] New: - Unproper condition ?

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

Unproper condition ?

           Summary: Unproper condition ?
           Product: Xerces-C++
           Version: Nightly build (please specify the date)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validating Parser (DTD)
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: PeterV@ti.com.od.ua


File: \xercesc\internal\XMLScanner.cpp
Line: 2461

We cannot have an internal subset whn reusing a grammar (fUseCachedGrammar)
fToCacheGrammar flag instructs the parser to cache the grammar (for later 
reusing). So the following condition is incorrect:

// We can't have any internal subset if we are reusing the validator
if (fUseCachedGrammar || fToCacheGrammar)
    ThrowXML(RuntimeException, XMLExcepts::Val_CantHaveIntSS);

Proposed patch:
// We can't have any internal subset if we are reusing the validator
if (fUseCachedGrammar)
    ThrowXML(RuntimeException, XMLExcepts::Val_CantHaveIntSS);

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