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

*** shadow/3322 Tue Aug 28 14:29:07 2001
--- shadow/3322.tmp.15696       Tue Aug 28 14:29:07 2001
***************
*** 0 ****
--- 1,74 ----
+ +============================================================================+
+ | xsltc fails conf test copy46 select="*[local-name()='bar']"                |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3322                        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                                   |
+ There seems to be a problem specific to the use of the local-name() function
+ in the copy46 test. All of the nodes with names that include "bar" in their 
+ local part (to the right of any namespace prefix) should be copied, but 
+ xsltc isn't copying any of them.
+ 
+ Here is a test session showing the problem:    
+ 
+ Running xalan on copy46
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out xmlns:huh="http://unknown.com"; xmlns:joes="http://joes.com";
+ xmlns:foo="http://foo.test.com";><star><bar xmlns:yow="http://yow.test.com";>18
+ Generic Ave.</bar><foo:bar>157 Fourth St.</foo:bar><wonder:bar
+ xmlns:wonder="http://wonder.com";>777 Broadway</wonder:bar><bar>12 Slammin
+ Ave.</bar><joes:bar>17 Generic Ave.</joes:bar></star></out>
+ 
+ Running XSLTC with Xerces Parser on copy46
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out xmlns:joes="http://joes.com"; xmlns:huh="http://unknown.com";
+ xmlns:foo="http://foo.test.com";><star/></out>
+ 
+ cat copy46.xsl
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
+     xmlns:foo="http://foo.test.com";
+     xmlns:joes="http://joes.com";
+     xmlns:huh="http://unknown.com";>
+ 
+   <!-- FileName: copy46 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 11.2 -->
+   <!-- Creator: David Marston -->
+   <!-- Purpose: Introduce namespace nodes through copy-of where select ignores
+ namespace. -->
+ 
+ <xsl:template match="/">
+   <out>
+     <xsl:apply-templates select="doc"/>
+   </out>
+ </xsl:template>
+ 
+ <xsl:template match="doc">
+   <star>
+     <xsl:copy-of select="*[local-name()='bar']" />
+   </star>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ cat copy46.xml
+ <?xml version="1.0" encoding="UTF-8"?>
+ <doc xmlns:foo="http://foo.test.com";>
+   <bar xmlns:yow="http://yow.test.com";>18 Generic Ave.</bar>
+   <foo:bar>157 Fourth St.</foo:bar>
+   <wonder:bar xmlns:wonder="http://wonder.com";>777 Broadway</wonder:bar>
+   <bar xmlns:huh="http://unknown.com";>12 Slammin Ave.</bar>
+   <joes:bar xmlns:joes="http://joes.com";>17 Generic Ave.</joes:bar>
+ </doc>

Reply via email to