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

*** shadow/3508 Fri Sep  7 13:52:09 2001
--- shadow/3508.tmp.800 Fri Sep  7 13:52:09 2001
***************
*** 0 ****
--- 1,73 ----
+ +============================================================================+
+ | xsltc fails conf test select46 node set union on attribute axis            |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3508                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Minor                    OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ xsltc outputs the attribute nodes in the wrong order, as compared to XT, Saxon,
+ and Xalan. Not sure why the order would matter, but we are out voted 3 to 1. 
+ I'm setting priority low. 
+ 
+ Expected Output for select46
+ ----------------------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+ attribute 1 attribute 2
+ </out>
+ 
+ Obtained Output for select46
+ ----------------------------
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>
+ attribute 2attribute 1 
+ </out>
+ 
+ select46.xsl
+ ------------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ 
+   <!-- FileName: select46 -->
+   <!-- Document: http://www.w3.org/TR/Xpath -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 3.3 Node Sets -->
+   <!-- Purpose: NodeSet union using the attribute axis -->
+   <!-- Creator: Carmelo Montanez --><!-- Expression006 in NIST suite -->
+ 
+ <xsl:template match="/">
+   <out><xsl:text>
+ </xsl:text>
+     <xsl:for-each select="doc">
+       <xsl:apply-templates select="attribute::attr1|attribute::attr2"/>
+     </xsl:for-each>
+     <xsl:text>
+ </xsl:text></out>
+ </xsl:template>
+ 
+ <xsl:template match="*">
+   <xsl:value-of select="."/>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ select46.xml
+ ------------
+ <?xml version="1.0"?>
+ <doc attr1="attribute 1 " attr2="attribute 2">
+   <sub1>
+     <child1>child number 1</child1>
+   </sub1>
+   <sub2>
+     <child2>child number 2</child2>
+   </sub2>
+ </doc>

Reply via email to