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

<t:input port="source">
<c:body content-type="text/html" encoding="base64">PGh0bWw+CjxoZWFkPgo8dGl0bGU+QW4gSFRNTCBEb2N1bWVudDwvdGl0bGU+CjwvaGVhZD4KPGJv
ZHk+CjxwPldpdGggPGVtPjxiPmJyb2tlbjwvZW0+PC9iPiBtYXJrdXAuCjwvYm9keT4KPC9odG1s
Pgo=</c:body>
</t:input>

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

<p:unescape-markup namespace="http://www.w3.org/1999/xhtml"
		   encoding="base64" content-type="text/html"
		   charset="UTF-8"/>

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

<t:output port='result'>
<c:body content-type="text/html" encoding="base64">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>An HTML Document</title>
</head>
<body>
<p>With <em><b>broken</b></em> <b/> markup.
</p>
</body>
</html>
</c:body>
</t:output>

</t:test>

