<?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 unescapemarkup-007</t:title>

<t:pipeline>
<p:declare-step version='1.0' name="pipeline">
<p:output port="result"/>

<p:unescape-markup namespace="http://www.example.org/ns/">
  <p:input port="source">
    <p:inline><wrapper>&lt;!-- comment -->&lt;?foo bar?>&lt;doc>&lt;p>foo&lt;/p>&lt;/doc></wrapper></p:inline>
  </p:input>
</p:unescape-markup>

</p:declare-step>
</t:pipeline>

<t:output port='result'>
<wrapper><!-- comment --><?foo bar?><doc xmlns="http://www.example.org/ns/"><p>foo</p></doc></wrapper></t:output>

</t:test>


