http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2559 *** shadow/2559 Tue Jul 10 15:33:56 2001 --- shadow/2559.tmp.858 Tue Jul 10 17:30:15 2001 *************** *** 2,8 **** | Problem with ancestor-or-self | +----------------------------------------------------------------------------+ | Bug #: 2559 Product: XalanJ2 | ! | Status: NEW Version: 2.2.x | | Resolution: Platform: PC | | Severity: Normal OS/Version: Linux | | Priority: Other Component: org.apache.xpath | --- 2,8 ---- | Problem with ancestor-or-self | +----------------------------------------------------------------------------+ | Bug #: 2559 Product: XalanJ2 | ! | Status: ASSIGNED Version: 2.2.x | | Resolution: Platform: PC | | Severity: Normal OS/Version: Linux | | Priority: Other Component: org.apache.xpath | *************** *** 41,44 **** b5 and b6, _not_ b4. Thanks in advance, ! Georg Schneemayer --- 41,79 ---- b5 and b6, _not_ b4. Thanks in advance, ! Georg Schneemayer ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-07-10 17:30 ------- ! Georg, I've not been able to reproduce this problem from a stylesheet with the ! latest CVS code. I wouldn't think there would be a difference from the XPath ! API. ! ! Can I send you the latest jar for you to try? ! ! Also, it might help if you ran this stylesheet (with the XML in your post) from ! the command line and reported your results. ! ! <?xml version="1.0"?> ! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> ! ! <!-- FileName: axes113 --> ! <!-- Document: http://www.w3.org/TR/xpath --> ! <!-- DocVersion: 19991116 --> ! <!-- Section: XXX --> ! <!-- Purpose: XXX. --> ! <!-- Author: XXX --> ! ! <xsl:template match="/"> ! <out> ! <xsl:for-each select="//a[@id='a3']"> ! <xsl:value-of select="@id"/><xsl:text>: </xsl:text> ! <xsl:for-each select="ancestor-or-self::a/b"> ! <xsl:value-of select="@id"/><xsl:text> </xsl:text> ! </xsl:for-each> ! </xsl:for-each> ! </out> ! </xsl:template> ! ! </xsl:stylesheet> ! ! My results are: <out>a3: b1 b2 b3 b4 b5 b6 </out>
