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

*** shadow/2839 Thu Jul 26 12:31:21 2001
--- shadow/2839.tmp.19585       Thu Jul 26 12:31:22 2001
***************
*** 0 ****
--- 1,77 ----
+ +============================================================================+
+ | xsltc fails conf test namespace01 with omitted line feeds                  |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2839                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: CurrentCVS              |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ xsltc fails to insert line feeds after each <p> element in the output. Other
+ processors do. If you replace the <xsl:attribute> elements in the stylesheet
+ with literal result element output, the line feeds are not omitted. If you
+ remove the <xsl:output indent="yes"> the spaces beteen the <p> elements in the
+ output are removed, but still no line feeds are inserted, which they should be,
+ since they are part of the literal result output content for the <out> element.
+ 
+ Obtained Output
+ ===============
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out xmlns:anamespace="foo.com">
+   <p anamespace:Attr1="true"/>  <p xmlns:ns0="baz.com" ns0:Attr2="true"/>  <p
+ Attr3="true"/></out>
+ 
+ Expected Output
+ ===============
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out xmlns:anamespace="foo.com">
+ <p anamespace:Attr1="true"/>
+ <p xmlns:ns0="baz.com" ns0:Attr2="true"/>
+ <p Attr3="true"/>
+ </out>
+ 
+ Note: Saxon indents the <p> lines
+ 
+ XSL
+ ===
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ <xsl:output indent="yes"/>
+ 
+   <!-- FileName: namespace01 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 2.4 -->
+   <!-- Creator: Paul Dick -->
+   <!-- Purpose: Apply namespaces to attributes -->
+ 
+ <xsl:template match="/">
+   <out xmlns:anamespace="foo.com">
+     <p>
+       <xsl:attribute name="Attr1" namespace="foo.com">true</xsl:attribute>
+     </p>
+     <p>
+       <xsl:attribute name="Attr2" namespace="baz.com">true</xsl:attribute>
+     </p>
+         <!-- This 3rd case is a base line and should not have associated
+ namespace -->
+         <p>
+       <xsl:attribute name="Attr3">true</xsl:attribute>
+     </p>
+   </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ XML
+ ===
+ <?xml version="1.0"?>
+ <doc>
+ </doc>

Reply via email to