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

  <t:title>Test err-d0026-001</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests that an option (declaration) is not allowed to refer to the
    context.</p>
  </t:description>

  <t:input port="source">
    <doc>
      <para>some para</para>
      <para>some para</para>
    </doc>
  </t:input>
  
  <t:pipeline>
    <p:pipeline version='1.0' name="main">
      <p:option name="opt" select="count(//para)"/>

      <p:identity/>

    </p:pipeline>

  </t:pipeline>
</t:test>
