-
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
pure: Variable defined in pattern are not resolved when used in rule context #142
Comments
@bertrand-lorentz Thanks for pointing that out - you are totally right. Also the fix is exactly what is needed. Quick info: afterwards another error occurs, because the pattern ID
|
Will be fixed in the upcoming 7.1.0 version (that is based on Saxon 12) |
The schematron is just a minimal example I quickly put together to reproduce the issue, so not a problem. Thanks for the quick correction ! |
Because Saxon 12 has some issues, I also backported all the changes and create a ph-schematron 7.0.1 release that is based on Saxon 11.4 |
Trying to use the following Schematron in "pure" mode :
It fails for the second rule with the message below, because it can't resolve the
$inPattern
variable in the rule context.It seems that variables defined inside the "pattern" are not considered when resolving variable reference in the
context
attribute.After quick look around in the code I found the following in PSXPathBoundSchema.java:
I think this should use
aPatternVariables
instead ofaGlobalVariables
The error message and stacktrace:
The text was updated successfully, but these errors were encountered: