<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error">

<t:title>Test validrng-005</t:title>

<t:input port="source">
<doc>
<title>Title</title>
<p>Some paragraph.</p>
</doc>
</t:input>

<t:pipeline>
  <p:pipeline version='1.0'>
    
    <p:validate-with-relax-ng>
      <p:input port="schema">
        <p:inline>
          <wrapper c:content-type="application/relax-ng-compact-syntax">
            element doc {
              element title { text }?,
              element p { text }*
            }
          </wrapper>
        </p:inline>
      </p:input>
    </p:validate-with-relax-ng>

  </p:pipeline>
</t:pipeline>

<t:output port="result">
<doc>
<title>Title</title>
<p>Some paragraph.</p>
</doc></t:output>

</t:test>

