string-urlencode

<xsl:include href="../plugins/tenandtwo-xslt-processor/xsl/string.xsl" />

<xsl:call-template name="string-urlencode">
    <xsl:with-param name="value" select="$value" />
</xsl:call-template>

TEST 1 : PASS
string-urlencode :
– value = http://example.com/test#car

result :
http%3A%2F%2Fexample.com%2Ftest%23car


TEST 2 : PASS
string-urlencode :
– value = http://example.com/test?a=b&c=d

result :
http%3A%2F%2Fexample.com%2Ftest%3Fa%3Db%26c%3Dd


TEST 3 : PASS
string-urlencode :
– value = & $%+,/:;=?@#

result :
%26+%24%25%2B%2C%2F%3A%3B%3D%3F%40%23