<?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"
        error="err:XD0010">
  
  <t:title>Test err:XD0010</t:title>
  
<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests if dynamic error XD0010 is thrown if the match expression on p:viewport does not match an element or document.</p>  
</t:description>

<t:input port="source">
   <doc>
     <?foo bar?>
     <p>Some paragraph.</p>
   </doc>
 </t:input>

 <t:pipeline>
   <p:pipeline version='1.0'>
     <p:viewport match="processing-instruction()">
       <p:identity>
         <p:input port="source">
           <p:inline><foo/></p:inline>
         </p:input>
       </p:identity>
     </p:viewport>
   </p:pipeline>
 </t:pipeline>
  
</t:test>

