-
Notifications
You must be signed in to change notification settings - Fork 37
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
Attribute @subject not used for location in SVRL result #133
Comments
Thanks for the proposal.
And can you eventually provide a small demo SCH with the usage of this attribute? |
Hello Philip, Our need is to be able to specify one or several node(s)/attributes from context path in a single "subject"/"location". For example, a range of values for which the maximum cannot be less than the minimum : <rule context="/path/ValueRange">
<assert id="XXX" subject="@min @max" test="not(@min) or not(@max) or number(@min) <= number(@max)"
role="ERROR">
min-max error
</assert>
</rule> If the 2nd ValueRange node in /path does not check this rule, we expect in SVRL result to specify both attributes which cause the assertion failure : <failed-assert id="XXX" location="/path/ValueRange[1]/@min /path/ValueRange[1]/@max" test="not(@min) or not(@max) or number(@min) <= number(@max)" role="ERROR">
<text>
min-max error
</text> Thx, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is finally contained in v8.0.0 |
In case of presence, attribute @subject from schematron rule should be used in the SVRL Result instead of context path in the attribute @location . Otherwise, the XML node(s) or attribute(s) which is(are) the cause of the error/warning cannot be retrieved precisely
To be also in compliance with mapping defined in schematron page : https://schematron.com/document/3464.html
Thx,
The text was updated successfully, but these errors were encountered: