Saxonica/Saxon-Forms

string check fails for nontrivial binds

Opened this issue · 0 comments

in the get-properties template, there is a "shortcut" that does a string comparison of the XPath expressions. As expected, this fails for non-trivial binds (i.e. those with subscripts, use of fn:index(), etc.)

<!-- do a string check here of $nodeset-mod = $binding-nodeset-mod (as a shortcut before performing XPath evaluation) -->
<xsl:when test="$nodeset-mod = $binding-nodeset-mod">
<xsl:sequence select="."/>
<xsl:message use-when="$debugMode">[get-properties mode] Binding found by matching nodeset path '<xsl:sequence select="$nodeset-mod"/>'</xsl:message>
</xsl:when>