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=2932 *** shadow/2932 Tue Jul 31 13:47:01 2001 --- shadow/2932.tmp.13213 Tue Jul 31 13:47:01 2001 *************** *** 0 **** --- 1,71 ---- + +============================================================================+ + | xsltc fails conf test axes114 and 115 preceding-sibling::foo[1] vs. (prece | + +----------------------------------------------------------------------------+ + | Bug #: 2932 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 | + The following test case is for axes115. The only difference between 114 and 115 + is that 114 has + + preceding::foo[1] vs. (preceding::foo)[1] + + and 115 has + + preceding-sibling::foo[1] vs. (preceding-sibling::foo)[1] + + Obtained Output + =============== + <?xml version="1.0" encoding="utf-8" ?> + <out>c, c</out> + + Expected Ouput + ============== + <?xml version="1.0" encoding="UTF-8"?> + <out>a, c</out> + + XSL + ===<?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <!-- FileName: AXES115 --> + <!-- Document: http://www.w3.org/TR/xpath --> + <!-- DocVersion: 19991116 --> + <!-- Section: 3.3 --> + <!-- Creator: David Marston --> + <!-- Purpose: Test for preceding-sibling::foo[1] vs. + (preceding-sibling::foo)[1], similar + to the treatment of preceding:: in the first NOTE in section 3.3 --> + + <xsl:template match="/"> + <out> + <xsl:for-each select="//baz"> + <xsl:value-of select="preceding-sibling::foo[1]/@att1"/><xsl:text>, + </xsl:text> + <xsl:value-of select="(preceding-sibling::foo)[1]/@att1"/> + </xsl:for-each> + </out> + </xsl:template> + + </xsl:stylesheet> + + XML + === + <?xml version="1.0"?> + <doc> + <foo att1="c"> + <foo att1="b"> + <foo att1="a"/> + </foo> + </foo> + <baz/> + </doc> \ No newline at end of file
