tests.core.rule-context-element-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-context-element-01" expect="invalid"> <label>Context node is an element node</label> <reference>ISO Schematron 2016: Annex C Clause 2 (xslt), Annex H Clause 2 (xslt2), Annex I Clause 2 (xpath2)</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="false()"/> </sch:rule> </sch:pattern> </sch:schema> </schemas> </testcase>