Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Returns the name of the node and not the string value of eval'd sch:name/@path, #69

Open
dmj opened this issue Oct 25, 2018 · 0 comments
Labels
bug Description of a bug

Comments

@dmj
Copy link
Member

dmj commented Oct 25, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Description of a bug
Projects
None yet
Development

No branches or pull requests

2 participants