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

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests if dynamic error XC0039 is thrown if a sequence of documents is provided to an XSLT 1.0 step.</p>  
</t:description>

<t:input port='source'>
  <t:document>
    <doc1/>
  </t:document>
  <t:document>
    <doc2/>
  </t:document>
</t:input>

<t:input port='style'>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns="http://www.w3.org/1999/xhtml"
                version="1.0">
<xsl:output method="xml" encoding="utf-8" indent="no"/>
<xsl:template match="/">
	<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
</t:input>

<t:pipeline>
	<p:declare-step version='1.0' name="pipeline">
	<p:input port="source" sequence="true"/>
	<p:input port="style"/>
	<p:input port="parameters" kind="parameter"/>
	<p:output port="result"/>

	<p:xslt version="1.0">
	  <p:input port="source">
	    <p:pipe step="pipeline" port="source"/>
	  </p:input>
	  <p:input port="stylesheet">
	    <p:pipe step="pipeline" port="style"/>
	  </p:input>
	</p:xslt>

	</p:declare-step>

</t:pipeline>

</t:test>

