<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xmlns:err="http://www.w3.org/ns/xproc-error"
        expected="fail" code="err:XC0155" features="p-validate-with-relax-ng">
  <t:info>
    <t:title>ab-validate-with-relax-ng-005</t:title>
    <t:revision-history>
      <t:revision>
        <t:date>2020-07-05</t:date>
        <t:author>
          <t:name>Achim Berndzen</t:name>
        </t:author>
        <t:description xmlns="http://www.w3.org/1999/xhtml">
          <p>Changed expected error code</p>
        </t:description>
      </t:revision>
      <t:revision>
        <t:date>2019-08-02</t:date>
        <t:author>
          <t:name>Achim Berndzen</t:name>
        </t:author>
        <t:description xmlns="http://www.w3.org/1999/xhtml">
          <p>Initial publication</p>
        </t:description>
      </t:revision>
    </t:revision-history>
  </t:info>
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Basic test, standard grammar: assert-valid is true by default, test error raised</p>
  </t:description>
  <t:pipeline>
<p:declare-step name="pipeline" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>

  <p:validate-with-relax-ng>
    <p:with-input port="source">
      <doc>
        <p>Some paragraph.</p>
      </doc>
    </p:with-input>
    <p:with-input port="schema">
      <grammar xmlns="http://relaxng.org/ns/structure/1.0">
        <start>
          <ref name="doc"/>
        </start>
        <define name="doc">
          <element name="doc">
            <ref name="title"/>
            <zeroOrMore>
              <ref name="p"/>
            </zeroOrMore>
          </element>
        </define>
        <define name="title">
          <element name="title">
            <text/>
          </element>
        </define>
        <define name="p">
          <element name="p">
            <text/>
          </element>
        </define>
      </grammar>
    </p:with-input>
  </p:validate-with-relax-ng>
  
  <p:identity>
    <p:with-input pipe="report" />
  </p:identity>
</p:declare-step>
</t:pipeline>
</t:test>