tests.svrl.svrl-property-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="invalid" features="svrl" id="svrl-property-01"> <label>Property references are copied to SVRL output</label> <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="/"> <sch:report test="true()" properties="p1 p2"/> </sch:rule> </sch:pattern> <sch:properties> <sch:property id="p1"> Context: <sch:value-of select="name()"/> </sch:property> <sch:property id="p2"> Context: <sch:value-of select="name()"/> </sch:property> </sch:properties> </sch:schema> </schemas> <expectations xmlns:svrl="http://purl.oclc.org/dsdl/svrl"> <expectation test="count(//svrl:successful-report/svrl:property-reference[@property = 'p1' or @property = 'p2']) = 2"/> </expectations> </testcase>