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 2001/08/24 16:57:59 UTC

[DO NOT REPLY: Bug 3259] New: PI within DTD is not reported

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/3259	Fri Aug 24 07:57:59 2001
--- shadow/3259.tmp.20899	Fri Aug 24 07:57:59 2001
***************
*** 0 ****
--- 1,86 ----
+ +============================================================================+
+ | PI within DTD is not reported                                              |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3259                        Product: Xerces-C++              |
+ |       Status: NEW                         Version: 1.5.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: SAX/SAX2                |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: kayingl@ca.ibm.com                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ ---------------------------------
+ Overview Description: 
+ ---------------------------------
+ The processing instruction within the DTD is not reported as a 
+ processingInstruction event in SAX/SAX2 and in IDOM.
+ ---------------------------------
+ Steps to Reproduce: 
+ ---------------------------------
+ 1. Copy and paste the following into a file and save it as test.xml:
+ <?xml version="1.0" encoding="us-ascii" ?>
+ <!DOCTYPE animal [
+    <!ELEMENT animal (cat|tiger|leopard)+>
+    <!NOTATION animal_class SYSTEM "ibm29v01.txt">
+    <!ELEMENT cat ANY>
+    <!ENTITY forcat "This is a small cat">
+    <!ELEMENT tiger (#PCDATA)>
+    <!ELEMENT leopard ANY>
+    <!ELEMENT small EMPTY>
+    <!ELEMENT big EMPTY>
+    <!ATTLIST tiger color CDATA #REQUIRED>
+    <?sound "This is a PI" ?>
+    <!-- This is a comment -->
+     
+ ]>
+ <animal>
+    <cat>&forcat;</cat>
+    <tiger color="white">This is a white tiger in Mirage!!</tiger>
+    <cat/>
+    <leopard>
+       <small/>
+       <big/>
+    </leopard>
+ </animal>
+ 
+ 2. Run the SAXPrint with the following command:
+ SAXPrint -v=always test.xml
+ 
+ ---------------------------------
+ Actual Results:  
+ ---------------------------------
+ <?xml version="1.0" encoding="LATIN1"?>
+ <animal>
+    <cat>This is a small cat</cat>
+    <tiger color="white">This is a white tiger in Mirage!!</tiger>
+    <cat></cat>
+    <leopard>
+       <small></small>
+       <big></big>
+    </leopard>
+ </animal>
+ ---------------------------------
+ Expected Results:  
+ ---------------------------------
+ <?xml version="1.0" encoding="LATIN1"?>
+ <?sound "This is a PI" ?>
+ <animal>
+    <cat>This is a small cat</cat>
+    <tiger color="white">This is a white tiger in Mirage!!</tiger>
+    <cat></cat>
+    <leopard>
+       <small></small>
+       <big></big>
+    </leopard>
+ </animal>
+ 
+ ---------------------------------
+ Additional Information: 
+ ---------------------------------
+ Only DOMPrint shows the correct result among SAXPrint, SAX2Print, DOMPrint and 
+ IDOMPrint.

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