When using XPath expression directly on a JDOM tree,
the value of position() is computed incorrectly when
navigating an axis. The effect is that filtered
expressions of the form axis::node return too many
Applies to Saxon 7.x only.
Test case axes017, when run with a JDOM tree.
Source code fixed.