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

*** shadow/2607 Thu Jul 12 14:03:31 2001
--- shadow/2607.tmp.24394       Thu Jul 12 14:03:31 2001
***************
*** 0 ****
--- 1,64 ----
+ +============================================================================+
+ | xsltc fails embed03 and 04 missing the xml declaration                     |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2607                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.1                   |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Except for the missing xml declaration
+ 
+     <?xml version="1.0" encoding="UTF-8"?>
+ 
+ the output from xsltc looks better than the expected output, in terms of 
+ indentation and line breaks.
+ 
+ Test 03 uses a simplified stylesheet and 04 does the same thing with a regular 
+ stylesheet for comparison. 
+ 
+ XSL
+ === 
+ <html xsl:version="1.0"
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+       xmlns="http://www.w3.org/TR/xhtml1/strict";>
+ 
+   <!-- FileName: embed03 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 2.3 LRE as Stylesheet -->
+   <!-- Purpose: Stylesheet may consist of just a literal result element.
+      This is the example from the spec. -->
+ 
+   <head>
+     <title>Expense Report Summary</title>
+   </head>
+   <body>
+     <p>Total Amount: <xsl:value-of select="expense-report/total"/></p>  
+   </body>
+ </html>
+ 
+ Obtained Ouput
+ ==============
+ <html xmlns="http://www.w3.org/TR/xhtml1/strict";>
+   <head>
+     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+     <title>Expense Report Summary</title>
+   </head>
+   <body>
+     <p>Total Amount: 153</p>
+   </body>
+ </html>
+ 
+ Expected Output
+ ===============
+ <?xml version="1.0" encoding="UTF-8"?>
+ <html xmlns="http://www.w3.org/TR/xhtml1/strict";><head><title>Expense Report 
+ Summary</title></head><body><p>Total Amount: 153</p></body></html>

Reply via email to