The string-urldecode() function
Smartsite 7.2 - ...
The string-urldecode() extension function url decodes the specified string.
XML | Copy Code |
---|---|
string exf:string-urldecode(arg1) |
Parameters:
- arg1: a node reference or string literal.
Example
XML | Copy Code |
---|---|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:exf="http://smartsite.nl/namespaces/xforms/1.0"> <head> <title>Example</title> <xf:model> <xf:instance> <data xmlns=""> </data> </xf:instance> </xf:model> </head> <body> <xf:group ref="/data" appearance="full"> <xf:label /> <xf:output value="exf:string-urldecode('price%3d%e2%82%ac200%2c-')" /> </body> </html> |
The result will be:
price=€200,-
Namespace
This function is available within the Smartsite XForms namespace (http://smartsite.nl/namespaces/xforms/1.0).