Reputation: 65
I want to have my data decoded after the xsl transfomation, what can I do?
source:
<label><![CDATA[%3Clabel%20for%3D%22grp_Jb6dVM%22%20class%3D%22control-label%20span2%22%20%3ETenant%20Name%20%3Cspan%20class%3D%22required%22%3E%2A%3C%2Fspan%3E%3C%2Flabel%3E]]></label>
the output I want:
<label><![CDATA[<label for="grp_Jb6dVM" class="control-label span2" >Tenant Name <span class="required">*</span></label>]]></label>
so, how can I write my template to achieve this??
Upvotes: 1
Views: 1721
Reputation: 65
Finally, I deside not to do this in the process of XSL Transformation. In any oo language, it should be no more than 1 line of code to decode it. Like in Java,
java.net.URLDecoder.decode(str, "UTF-8");
Upvotes: 0
Reputation: 35246
xsltproc contains an extension named decode-uri
$ xsltproc --dumpextensions | grep code
{http://exslt.org/strings}encode-uri
{http://exslt.org/strings}decode-uri
Upvotes: 4