<?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:add-attribute #001</t:title>

  <t:input port='source'>
    <document>
      <title>Some Title</title>
      <para>Some paragraph.</para>
    </document>
  </t:input>

  <t:pipeline>
    <p:pipeline version='1.0' name="pipeline">
      <p:add-attribute match="title" attribute-name="foo" attribute-value="bar"/>
    </p:pipeline>
  </t:pipeline>

  <t:output port="result">
    <document>
      <title foo="bar">Some Title</title>
      <para>Some paragraph.</para>
    </document>
  </t:output>

</t:test>

