p:www-form-urldecode 008 (AB)

Tests p:www-form-urldecode

Test ab-www-form-urldecode-008.xml is expected to pass.

The pipeline


<p:declare-step 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="'key'"/>
   </p:www-form-urldecode>
   <p:cast-content-type content-type="application/xml"/>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:ns prefix="map" uri="http://www.w3.org/2005/xpath-functions"/>
   <s:pattern>
      <s:rule context="/">
         <s:assert test="map:map">Root element is not 'map:map'.</s:assert>
         <s:assert test="map:map/map:string[@key='key']">There is no 'string' child with @key='key'.</s:assert>
         <s:assert test="string-length(map:map/map:string[@key='key']/text())=0">The value of element 'key' is not ''.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

12 Sep 2021, Achim Berndzen

Corrected: Test is now supposed to pass.

22 Jul 2021, Achim Berndzen

New test added.