Tests p:www-form-urldecode
Test ab-www-form-urldecode-011.xml is expected to pass.
<p:declare-step xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
<p:output port="result"/>
<p:www-form-urldecode>
<p:with-option name="value" select="'&'"/>
</p:www-form-urldecode>
<p:identity>
<p:with-input>
<result>{map:size(.)}</result>
</p:with-input>
</p:identity>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="result">Root element is not 'result'.</s:assert>
<s:assert test="result/text()='0'">Text node in 'result' is not '0'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Corrected: Test is now supposed to pass.
New test added.