Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRC-10 does not provide a useful locator to problem content #6

Open
gscottwilson opened this issue Apr 18, 2017 · 1 comment
Open

Comments

@gscottwilson
Copy link
Collaborator

When SRC-10 fails it provides the xpath to the overall Benchmark element, and not the specific offending element within. The schematron rule can be reworded to provide a more useful xpath

@david-waltermire
Copy link
Collaborator

We should address this using a @subject attribute on the schematron assert.

From the Schematron spec:

5.5.14 subject attribute
A path allowing more precise specification of nodes. The path expression is evaluated in the context of the
context node of the current rule. If no subject attribute is specified, the current subject node may be used.
NOTE The subject attribute is required because the rule context may have been selected for reasons of
convenience or performance, in association with the particular assertion tests. In such cases, the rule context may not be useful to identify users, and the nodes located by the subject attribute may be more useful. Similarly, it may not be possible to determine from an assertion test which nodes the the assertion test has tested. In such a case, the nodes located by the subject attribute may be more useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants