We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With ph-schematron-pure 8.0.2, the following schematron will always cause a failed assert:
<let name="a" value="1"/> <let name="a-plus-one" value="$a + 1"/> <assert role="ERROR" test="$a-plus-one = 2">error message</assert>
I would expect the test to be always true.
After some debugging, it seems the declaration of a-plus-one is evaluated before the declaration of a. So a-plus-one will then be equal to 1.
a-plus-one
a
The current behavior is probably because the variables are stored in a sorted Map: https://github.com/phax/ph-schematron/blob/master/ph-schematron-pure/src/main/java/com/helger/schematron/pure/binding/xpath/PSXPathVariables.java#L49
I guess using a Map that preserves insertion order would correct this.
The text was updated successfully, but these errors were encountered:
a0e969b
Some minor post processing to #177
9ca4c7a
Part of the 8.0.3 release
Sorry, something went wrong.
phax
Successfully merging a pull request may close this issue.
With ph-schematron-pure 8.0.2, the following schematron will always cause a failed assert:
I would expect the test to be always true.
After some debugging, it seems the declaration of
a-plus-one
is evaluated before the declaration ofa
.So
a-plus-one
will then be equal to 1.The current behavior is probably because the variables are stored in a sorted Map:
https://github.com/phax/ph-schematron/blob/master/ph-schematron-pure/src/main/java/com/helger/schematron/pure/binding/xpath/PSXPathVariables.java#L49
I guess using a Map that preserves insertion order would correct this.
The text was updated successfully, but these errors were encountered: