<?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 the <t:code>p:store</t:code> step</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>WARNING: This test writes to <code>file:///tmp/testout.xml</code>.
  </p>
</t:description>

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

<t:pipeline>
  <p:declare-step version='1.0' name="main">
    <p:input port="source"/>
    <p:store name="store" href="file:///tmp/testout.xml"/>
  </p:declare-step>
</t:pipeline>

<t:compare-pipeline>
  <p:declare-step name="cmain" version="1.0">
    <p:output port="output"/>
    <p:load name="load" href="file:///tmp/testout.xml"/>
  </p:declare-step>
</t:compare-pipeline>

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

