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

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests if dynamic error XC0056 is thrown if the specified initial mode or named template cannot be applied to the specified stylesheet.</p>  
</t:description>

<t:input port='source'>
    <doc1/>
</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"/>
	<p:input port="style"/>
	<p:input port="parameters" kind="parameter"/>
	<p:output port="result"/>

	<p:xslt version="1.0" initial-mode="non-existent-mode">
	  <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>


