<?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:XD0019">
<t:title>Test for err:XD0019 - 002</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>It is a dynamic error if any option value does not satisfy the type
  required for that option.</p>
</t:description>

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

<t:input port="alternate">
  <doc xmlns=""/>
</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">
      <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:with-option name="fail-if-not-equal" select="'yes'">
	<p:empty/>
      </p:with-option>
    </p:compare>
  </p:declare-step>
</t:pipeline>

</t:test>

