<?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 variable #006</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests that variables declared in sibling compound steps are
    not shadowing each other.</p>
  </t:description>

  <t:input port="source">
    <doc xmlns=""/>
  </t:input>

  <t:pipeline>
    <p:pipeline xmlns:ix="http://www.innovimax.fr/xproc/ns" version='1.0'>
      <p:group>
        <p:variable name="varName" select="0"/>
        <p:identity/>
      </p:group>
      <p:group>
        <p:variable name="varName" select="'not a duplicate'"/>
        <p:identity/>
      </p:group>
    </p:pipeline>
  </t:pipeline>

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

</t:test>
