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

tests.core.schema-default-phase-01.xml Maven / Gradle / Ivy

The newest version!
<testcase xmlns="tag:[email protected],2019:Schematron:Testsuite" id="schema-default-phase-01" expect="valid">
  <label>When no phase is given, the processor uses the phase given in @defaultPhase</label>
  <reference>ISO Schematron 2016: Section 5.4.13 clause 3</reference>
  <documents>
    <primary filename="document.xml">
      <element xmlns=""/>
    </primary>
  </documents>
  <schemas>
    <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" defaultPhase="phase">
      <sch:phase id="phase">
        <sch:active pattern="pass"/>
      </sch:phase>
      <sch:pattern id="fail">
        <sch:rule context="*">
          <sch:assert test="false()"/>
        </sch:rule>
      </sch:pattern>
      <sch:pattern id="pass">
        <sch:rule context="*">
          <sch:assert test="true()"/>
        </sch:rule>
      </sch:pattern>
    </sch:schema>
  </schemas>
</testcase>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy