Project

Profile

Help

Bug #4683

closed

chained descendant axes gathering extra nodes

Added by Erica Coan over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
DOM Interface
Sprint/Milestone:
-
Start date:
2020-08-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 9.9
Fix Committed on Branch:
10, 9.9
Fixed in Maintenance Release:
Platforms:

Description

I am getting unexpected results from the attached(greatly simplified) transform when run via Saxon HE 9.9.1.5 for .NET. I would expect the 3 messages to have values of 0, 1, and 0. Instead, I get 3, 3, and 0. I've played around with different versions of the select, and it seems to me that the descendant axis is picking up ALL descendants, not just the descendants of the set of p nodes gathered up to that point.

select = "count(ancestor::p/preceding-sibling::p/descendant::sectPr)"

Goal: Find preceding p siblings of ancestor p nodes. Then gather sectPr descandants of those p nodes.


Files

transform.xsl (843 Bytes) transform.xsl Erica Coan, 2020-08-13 19:25
input.xml (2.06 KB) input.xml Erica Coan, 2020-08-13 19:25

Please register to edit this issue

Also available in: Atom PDF