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/09/04 21:19:44 UTC

[DO NOT REPLY: Bug 3417] New: xsltc fails conf test output59 puts PI before DOCTYPE

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=3417

*** shadow/3417	Tue Sep  4 12:19:44 2001
--- shadow/3417.tmp.28453	Tue Sep  4 12:19:44 2001
***************
*** 0 ****
--- 1,62 ----
+ +============================================================================+
+ | xsltc fails conf test output59 puts PI before DOCTYPE                      |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3417                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: tamiro@east.sun.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Expected Output
+ ---------------
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional">
+ <?my-pi href="book.css" type="text/css">
+ <HTML>
+    Literal output
+  </HTML>
+ 
+ Obtained Output
+ ---------------
+ <?my-pi href="book.css" type="text/css"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
+ 4.0 Transitional">
+ <HTML>
+    Literal output
+  </HTML>
+ 
+ output59.xsl
+ ------------
+ <?xml version="1.0"?> 
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" 
+             doctype-public="-//W3C//DTD HTML 4.0 Transitional"/>
+ 
+   <!-- FileName: outp59 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 7.3 Creating Processing Instructions -->
+   <!-- Purpose: Test creation of a top-level processing-instruction before the 
+                 document element. -->
+ 
+ <xsl:template match="/">
+  <xsl:processing-instruction name="my-pi">href="book.css"
+ type="text/css"</xsl:processing-instruction>
+  <HTML>
+    <?PI1 Dothis ?>
+    Literal output
+  </HTML>
+ </xsl:template>
+  
+ </xsl:stylesheet>
+ 
+ output59.xml
+ ------------
+ <?xml version="1.0"?> 
+ <doc>
+ </doc>