I have an XML in which the double quotes should be replaced with the string \”.
eg:<root><statement1><![CDATA[<u>teset "message"here</u>]]></statement1></root>
so the output should be <root><statement1><![CDATA[<u>teset \"message\"here</u>]]></statement1></root>
Can anybody explain how to accomplish this?
I. XSLT 1.0 solution:
This transformation:
when applied on the provided XML document:
produces the wanted, correct result:
II. XSLT 2.0 solution:
when applied on the same XML document (as above), the same correct result is produced: