WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

HDS provides an XUnit custom assert to validate a HDS document against a schematron schema.

for example:

<test name="example schematron assert">
  <request>
    <identifier>active:myTest</identifier>
  </request>
  <assert>
    <hdsSchematron>
      <literal type="hds">
        <schema id="urn:my:custom:schema">
          <pattern>
            <rule context="/*">
              <assert test="name()='dummy'">root should be named dummy</assert>
            </rule>
          </pattern>
        </schema>
      </literal>
    </hdsSchematron>
  </assert>
</test>