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

*** shadow/2727 Sat Jul 21 05:45:10 2001
--- shadow/2727.tmp.12261       Sat Jul 21 05:45:11 2001
***************
*** 0 ****
--- 1,55 ----
+ +============================================================================+
+ | Identity transformation produces non well-formed output                    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2727                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.2.x                   |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: Xalan                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                       |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Xalan version is 2.2.D6 with Xerces 1.4.1 (Sun JDK 1.3.1 on Windows)
+ 
+ Transform this simple document:
+ 
+ <?xml version="1.0" encoding="US-ASCII"?>
+ <OUTLINE xmlns:xlink="http://www.w3.org/1999/xlink";><NODE type="book" 
+ xlink:href="hello.htm" xlink:type="simple"><LABEL>Hello, world!
+ </LABEL></NODE></OUTLINE>
+ 
+ 
+ With the identity stylesheet from the XSLT Rec.:
+ 
+ <?xml version="1.0" encoding='iso-8859-1'?>
+ 
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+ 
+   <!-- see http://www.w3.org/TR/xslt#copying -->
+   <xsl:template match="@*|node()">
+     <xsl:copy>
+       <xsl:apply-templates select="@*|node()"/>
+     </xsl:copy>
+   </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ 
+ Using Xalan's command-line interface:
+ 
+ C:\>java org.apache.xalan.xslt.Process -IN test.xml -XSL identity.xsl
+ 
+ 
+ The result document lacks the xlink:href attribute on the NODE element:
+ 
+ <?xml version="1.0" encoding="UTF-8"?>
+ <OUTLINE xmlns:xlink="http://www.w3.org/1999/xlink";><NODE type="book" ="" 
+ xlink:type="simple"><LABEL>Hello, world!</LABEL></NODE></OUTLINE>
+ 
+ Note the empty attribute/value ="". The problem disappears if you add a newline 
+ character before the <NODE> start tag.

Reply via email to