<?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:px="http://xproc.dev.java.net/ns/extensions"
      xmlns:c="http://www.w3.org/ns/xproc-step"
      xmlns:err="http://www.w3.org/ns/xproc-error"
      error="err:XC0019">
<t:title>Test for err:XC0019 - 001</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>It is a dynamic error if the documents are not equal,
  and the value of the fail-if-not-equal option is true.</p>
</t:description>

<t:input port="source">
  <doc/>
</t:input>

<t:input port="alternate">
  <doc2/>
</t:input>

<t:pipeline>
  <p:declare-step version='1.0' name="main" xmlns:p="http://www.w3.org/ns/xproc">
    <p:input port="source"/>
    <p:input port="alternate"/>
    <p:output port="result">
      <p:pipe step="step1" port="result"/>
    </p:output>
    <p:compare name="step1" fail-if-not-equal="true">
      <p:input port="source">
	<p:pipe step="main" port="source"/>
      </p:input>
      <p:input port="alternate">
	<p:pipe step="main" port="alternate"/>
      </p:input>
    </p:compare>
  </p:declare-step>
</t:pipeline>

</t:test>

