<?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:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error">

<t:title>Test output-001</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>This test tests the ability of a <code>p:output</code> element to
contain a <tag>p:document</tag> element.</p>
</t:description>

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

<t:pipeline>
<p:declare-step version='1.0' xmlns:p="http://www.w3.org/ns/xproc"
		name="main">
<p:input port="source"/>
<p:output port="fixed">
  <p:document href="http://tests.xproc.org/tests/doc/document.xml"/>
</p:output>

<p:identity/>
<p:sink/>
</p:declare-step>
</t:pipeline>

<t:output port='fixed'>
<doc>
<p>This is a test document</p>
</doc>
</t:output>
</t:test>
