tests.core.let-scope-phase-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-phase-01"> <label>Phase-variable is scoped to the phase</label> <reference>ISO Schematron 2016: Section 3.26</reference> <documents> <primary filename="document.xml"> <document xmlns=""/> </primary> </documents> <schemas phase="phase"> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> <sch:let name="foo" value="0"/> <sch:phase id="phase"> <sch:let name="foo" value="1"/> <sch:active pattern="pattern"/> </sch:phase> <sch:pattern id="pattern"> <sch:rule context="/"> <sch:assert test="$foo = 1"/> </sch:rule> </sch:pattern> </sch:schema> </schemas> </testcase>