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

tests.svrl.svrl-value-of-01.xml Maven / Gradle / Ivy

The newest version!
<testcase xmlns="tag:[email protected],2019:Schematron:Testsuite" expect="invalid" features="svrl" id="svrl-value-of-01">
  <label>The sch:value-of element expands into the value of evaluating the expression in @select</label>
  <reference>ISO Schematron 2016: Section 5.4.14, Annex C clause 5 (xslt), Annex H clause 5 (xslt2), Annex I clause 5 (xpath2)</reference>
  <documents>
    <primary filename="document.xml">
      <element xmlns="">Text content</element>
    </primary>
  </documents>
  <schemas>
    <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron">
      <sch:pattern>
        <sch:rule context="/element">
          <sch:report test="true()">
            <sch:value-of select="."/>
          </sch:report>
        </sch:rule>
      </sch:pattern>
    </sch:schema>
  </schemas>
  <expectations xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
    <expectation test="normalize-space(//svrl:successful-report) = 'Text content'"/>
  </expectations>
</testcase>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy