Name
p:www-form-urldecode — The standard p:www-form-urldecode step.
Synopsis
The p:www-form-urldecode
step decodes a
x-www-form-urlencoded
string into a JSON representation.
Output port | Primary | Sequence | Content types |
---|---|---|---|
result | ✔ | application/json |
Option name | Type | Required |
---|---|---|
value | xs:string | ✔ |
Declaration
|<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:output port="result" content-types="application/json"/>
| <p:option name="value" required="true" as="xs:string"/>
|</p:declare-step>
Errors
Code | Description |
---|---|
err:XC0037 | It is a
dynamic error (err:XC0037 ) if the value provided
is not a properly
x-www-form-urlencoded value. |
Description
The p:www-form-urldecode
step is defined in the
XProc 3.0:
Standard Step Library. It is also described on
XProcRef.org.