All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tests.svrl.svrl-property-01.xml Maven / Gradle / Ivy

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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy