I am using XSLT 1.0, Apache Software Foundation (Xalan XSLTC) processor. I am not supposed to use XSLT 2.0. I have the following xml in which the value of <prvNum>
has some special characters.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<prvNum>SPECIAL#1&</prvNum>
</root>
Now I want to perform percent-encoding for the value of <prvNum>
. For example the value should be changed as below after percent encoding:
SPECIAL%231%26
My output xml should looklike below:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<prvNum>SPECIAL%231%26</prvNum>
</root>
Can anybody tell me how do that?