You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/03/08 03:35:06 UTC

[Bug 894] New - DOCTYPE declaration doesn't have a closing > and startDTD is not invoked

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

*** shadow/894	Wed Mar  7 18:35:06 2001
--- shadow/894.tmp.13458	Wed Mar  7 18:35:06 2001
***************
*** 0 ****
--- 1,44 ----
+ +============================================================================+
+ | DOCTYPE declaration doesn't have a closing > and startDTD is not invoked   |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 894                         Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority:                           Component: javax.xml               |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: krishna.meduri@SUN.com                                       |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL: file:/home/kmeduri/DocTypeBug.html                           |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I tested this with SunOS5.6, JDK1.3, JAXP1.1 (Sun's).
+ I used crimson.jar, jaxp.jar and xalan.jar for running the attached programs.
+ This bug is reproduceable.
+ 
+ 1)
+ I set the transformer output properties OutputKeys.DOCTYPE_PUBLIC,
+ OutputKeys.DOCTYPE_SYSTEM
+ I transform an xml file and write it to PrintStream.
+ I find the DOCTYPE declaration but I don't find the closing > for DOCTYPE
+ declaration.
+ The sample output looks like this
+ 
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE document PUBLIC "-//mkrishna mohan//DTD//music pub//EN/" 
+ "http://krishna2:8080/publishers.dtd"<document>
+ ....
+ ....
+ </document>
+ 
+ 2)
+ startDTD callback of LexicalHandler is not invoked.
+ 
+ I expect two things to happen:
+ 
+ The root element <document> should be printed in the next line and DOCTYPE
+ declaration should end with >
+ 
+ startDTD callback should have been invoked.