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

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests if static error XS0017 is thrown if an option is both required and has a default value.</p>  
</t:description>

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

<!-- note: testsuite validation error for the use of required attribute -->

<t:pipeline>
	<p:pipeline version='1.0' name="pipeline"
	            xmlns:p="http://www.w3.org/ns/xproc"
	            xmlns:mine="http://www.example.org/test/mine">

	<p:declare-step type="mine:identity1">
	    <p:input port="source"/>
	    <p:output port="result"/>

	    <p:option name="test-option" select="'0'" required="true"/>
	    <p:identity>
	        <p:input port="source">
	            <p:inline>
	                <inline_identity_test/>
	            </p:inline>
	        </p:input>
	    </p:identity>

	</p:declare-step>

	<mine:identity1/>

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

</t:test>

