<?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:XC0025">

  <t:title>Test for err:XC0025 #002</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>It is a dynamic error if the match pattern matches
    anything other than an element node and the value of
    the position option is "first-child" or "last-child".</p>
  </t:description>

  <t:input port="source">
    <doc>
      <!-- comment -->
    </doc>
  </t:input>

  <t:pipeline>
    <p:pipeline version='1.0'>
      <p:insert match="comment()" position="last-child">
        <p:input port="insertion">
          <p:inline><foo/></p:inline>
        </p:input>
      </p:insert>

    </p:pipeline>
  </t:pipeline>

</t:test>


