schematron
schematron copied to clipboard
Returns the name of the node and not the string value of eval'd sch:name/@path,
5.4.6 name element Provides the names of nodes from the instance document to allow clearer assertions and diagnostics. The optional path attribute is an expression evaluated in the current context that returns a string that is the name of a node. In the latter case, the name of the node is used.
Cf. https://github.com/Schematron/schematron/blob/master/trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl#L1371 Cf. https://github.com/Schematron/schematron/blob/master/trunk/schematron/code/iso_schematron_skeleton_for_xslt1.xsl#L1195
It should be concat('string(',@path,')') in both cases.
This is covered by https://github.com/dmj/schematron-test/blob/t/more-tests/name/svrl-name-01.xspec