This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
Missing index on first of multiple children in human readable XPath #54
Labels
bug
Description of a bug
fix
Solution for a bug or enhancement
review wanted
Needs review before acceptance
When the notation of SVRL's
@location
is set to a human readable XPath (XSLT parameterfull-path-notation
set to2
), the following happens:If at any component of such a human readable XPath multiple children exist and the first one on that level is selected, the necessary index
[1]
is missing. This means that all children on that level are selected - instead of just the first one.The reason is the test in line 833 of
/trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl
. This test can be fixed by extending the check (when to output the index) from the presence of preceding siblings to also the presence of following siblings.So just from:
to
The text was updated successfully, but these errors were encountered: