tests.core.let-scope-rule-01.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schematron-conformance Show documentation
Show all versions of schematron-conformance Show documentation
Schematron conformance tests
The newest version!
<testcase xmlns="tag:[email protected],2019:Schematron:Testsuite" expect="valid" id="let-scope-rule-01"> <label>Rule-variable is scoped to the rule</label> <reference>ISO Schematron 2016: Section 3.26</reference> <documents> <primary filename="document.xml"> <document xmlns=""/> </primary> </documents> <schemas> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> <sch:pattern> <sch:rule context="/"> <sch:let name="foo" value="1"/> <sch:assert test="$foo = 1"/> </sch:rule> <sch:rule context="*"> <sch:let name="foo" value="0"/> <sch:assert test="$foo = 0"/> </sch:rule> </sch:pattern> </sch:schema> </schemas> </testcase>