tests.core.rule-order-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" id="rule-order-01" expect="valid"> <label>Lexical order of rules is significant</label> <reference>ISO Schematron 2016: Section 6.5 Clause 5</reference> <documents> <primary filename="document.xml"> <element xmlns=""/> </primary> </documents> <schemas> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> <sch:pattern> <sch:rule context="element"> <sch:assert test="true()"/> </sch:rule> <sch:rule context="*"> <sch:assert test="false()"/> </sch:rule> </sch:pattern> </sch:schema> </schemas> </testcase>