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

*** shadow/3317 Tue Aug 28 13:17:34 2001
--- shadow/3317.tmp.12938       Tue Aug 28 13:17:34 2001
***************
*** 0 ****
--- 1,68 ----
+ +============================================================================+
+ | xsltc fails conf test copy31 select='node()|@*'                            |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3317                        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: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Xsltc is not copying all the name space attributes present in the XML doc to the
+ output during an identity transform. The following session shows the problem:
+ 
+ Running xalan on copy31
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out><root xmlns:ped="http://ped.test.com";>
+   <Out xmlns:ns0="http://www.ns0.com"; ns0:Attr0="Hello" Attr1="Whatsup"
+ ped:Attr2="Goodbye"/>
+   <Out2 xmlns:bdd="http://bdd.test.com"/><!-- Unused namespace decl -->
+ </root></out>
+ 
+ 
+ Running XSLTC with Xerces Parser on copy31
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out><root>
+   <Out ns0:Attr0="Hello" Attr1="Whatsup" ped:Attr2="Goodbye"/>
+   <Out2/>
+ </root></out>
+ 
+  cat copy31.xsl
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ 
+   <!-- FileName: copy31 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 7.5 -->
+   <!-- Creator: David Marston -->
+   <!-- Purpose: Test for xsl:copy-of with nodeset. Shows handling of namespaces.
+ -->
+ 
+ <xsl:template match="/">
+   <out>
+     <xsl:apply-templates/>
+   </out>
+ </xsl:template>
+ 
+ <xsl:template match='node()|@*'>
+   <xsl:copy>
+     <xsl:apply-templates select='node()|@*'/>
+   </xsl:copy>
+ </xsl:template>
+ 
+ </xsl:stylesheet> 
+ 
+ cat copy31.xml
+ <?xml version="1.0" encoding="UTF-8"?>
+ <root xmlns:ped="http://ped.test.com";>
+   <Out xmlns:ns0="http://www.ns0.com"; ns0:Attr0="Hello" Attr1="Whatsup"
+ ped:Attr2="Goodbye"/>
+   <Out2 xmlns:bdd="http://bdd.test.com"/><!-- Unused namespace decl -->
+ </root>

Reply via email to