http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2559 *** shadow/2559 Tue Jul 10 15:33:55 2001 --- shadow/2559.tmp.29463 Tue Jul 10 15:33:56 2001 *************** *** 0 **** --- 1,44 ---- + +============================================================================+ + | 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 | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Hi, + + consider the following XML Document + + <a id="a1"> + <b id="b1"/> + <b id="b2"/> + <a id="a2"> + <b id="b3"/> + <b id="b4"/> + <a id="a3"> + <b id="b5"/> + <b id="b6"/> + </a> + </a> + </a> + + Applied the following XPath Expression with contextNode id=a3: + + ancestor-or-self::a/b + + (XPathAPI.selectNodeList(contextNode, "ancestor-or-self::a/b")) + + Xalan (tried version 2.0.0, 2.1.0 and 2.2 D6) only returns the nodes b1, b2, b3, + b5 and b6, _not_ b4. + + Thanks in advance, + Georg Schneemayer
