<?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 p:document-001</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>The p:document instruction must not fail if the requested XML
document is well-formed but invalid.</p>
</t:description>

<t:pipeline>
<p:declare-step version='1.0' name="main">

<p:output port="result"/>

<p:identity>
  <p:input port="source">
    <p:document href="../doc/invalid.xml"/>
  </p:input>
</p:identity>

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

<t:output port='result'>
<doc/>
</t:output>

</t:test>

