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 2001/03/05 18:34:49 UTC

[Bug 845] New - external subset and INCLUDE sections

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

*** shadow/845	Mon Mar  5 09:34:49 2001
--- shadow/845.tmp.3746	Mon Mar  5 09:34:49 2001
***************
*** 0 ****
--- 1,67 ----
+ +============================================================================+
+ | external subset and INCLUDE sections                                       |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 845                         Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.3.0                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Linux                   |
+ |     Priority:                           Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: patrik.beno@inmail.sk                                        |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ *** test.xml ***
+ 
+  <?xml version="1.0"?>
+  <!DOCTYPE book [
+  <!ENTITY % TEST SYSTEM "test.ent">
+  %TEST;
+  ]>
+  <book/>
+ 
+ *** test.ent ***
+ 
+  <![INCLUDE[
+  <!ELEMENT book EMPTY>
+  ]]>
+ 
+ I did:
+ 
+   java sax.SAXCount test.xml
+ 
+ [Fatal Error] test.ent:3:2: The document type declaration for root
+               element type "book" must end with '>'.
+ 
+ org.xml.sax.SAXException: Stopping after fatal error: The document type 
+ declaration
+ for root element type "book" must end with '>'.
+         at org.apache.xerces.framework.XMLParser.reportError
+ (XMLParser.java:1088)
+         at
+ org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError
+ (XMLDTDScanner.java:660)
+         at
+ org.apache.xerces.framework.XMLDTDScanner.abortMarkup(XMLDTDScanner.java:709)
+         at
+ org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl
+ (XMLDTDScanner.java:1128)
+         at
+ org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl
+ (XMLDocumentScanner.java:2192)
+         at
+ org.apache.xerces.framework.XMLDocumentScanner.access$000
+ (XMLDocumentScanner.java:86)
+         at
+ org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch
+ (XMLDocumentScanner.java:883)
+         at
+ org.apache.xerces.framework.XMLDocumentScanner.parseSome
+ (XMLDocumentScanner.java:381)
+         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
+         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:987)
+         at sax.SAXCount.print(SAXCount.java:164)
+         at sax.SAXCount.main(SAXCount.java:392)