tests.core.pattern-subordinate-document-02.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="pattern-subordinate-document-02" expect="invalid" features="iso2016"> <label>The subordinate document expression contains a variable</label> <documents> <primary filename="document.xml"> <element secondary="document-02" xmlns=""/> </primary> <secondary filename="document-02.xml"> <root xmlns=""/> </secondary> </documents> <schemas> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> <sch:let name="extension" value="'.xml'"/> <sch:pattern documents="concat(/element/@secondary, $extension)"> <sch:rule context="/"> <sch:report test="root"/> </sch:rule> </sch:pattern> </sch:schema> </schemas> </testcase>