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=3260 *** shadow/3260 Fri Aug 24 09:22:40 2001 --- shadow/3260.tmp.21320 Fri Aug 24 09:22:40 2001 *************** *** 0 **** --- 1,44 ---- + +============================================================================+ + | Attributes not handled correctly by Xalan | + +----------------------------------------------------------------------------+ + | Bug #: 3260 Product: XalanJ2 | + | Status: NEW Version: 2.0.0 | + | Resolution: Platform: PC | + | Severity: Major OS/Version: Windows NT/2K | + | Priority: Other Component: org.apache.xalan.transf | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Use data below to recreate problem. + + Input xml: + <?xml version="1.0" encoding="UTF-8"?> + <GrandParent> + <Parent age="36" name="Dad" > + <Child name="Son"/> + </Parent> + </GrandParent> + + Input xsl: + <?xml version="1.0" encoding="UTF-8"?> + <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:output method="xml" indent="yes" encoding="UTF-8" omit-xml- + declaration="no" /> + <xsl:template match="/" > + <xsl:element name="DADSNAME"> + <xsl:value-of select="//Parent//@name" /> + </xsl:element> + </xsl:template> + </xsl:transform> + + Output xml: + <?xml version="1.0" encoding="UTF-8"?> + <DADSNAME>Son</DADSNAME> + + Xalan is picking up name attribute of Child element rather than Parent. Should + be: <DADSNAME>Dad</DADSNAME>
