-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement let #2
Comments
Hi, never used that. I'll check the specification and let you know. |
Here's an example where it is used as a global variable (sorry about the formatting): <schema xmlns="http://purl.oclc.org/dsdl/schematron">
<ns uri="http://docbook.org/ns/docbook" prefix="db"/>
<let name="globalVar" value="/db:article/descendant::db:keyword//@xml:id"/>
<pattern id="Overview">
<rule id="one" context="/db:article/db:section[@xml:id='overview']/db:section[@xml:id='product_info']">
<assert test="$globalVar = 'x' or $globalVar = 'y'" role="error">"<value-of select="$globalVar"/>" is invalid</assert>
</rule>
</pattern>
</schema> |
Thanks for the example. I'll try to implement it next week. |
Closed
It's not a full support (it doesn't support global lets, but only lets inside a rule tag), but it's a start : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Know that it's an old repo but would you consider implementing the let-element?
Regards,
Anders
The text was updated successfully, but these errors were encountered: