Mega Code Archive

 
Categories / XML / XSLT StyleSheet
 

Disable escape

File: Data.xml <?xml version="1.0"?> <message>test</message> File: Transform.xslt <stylesheet version="1.0"   xmlns="http://www.w3.org/1999/XSL/Transform">   <output method="xml" omit-xml-declaration="yes" />   <template match="/">     <publisher xmlns="">       <value-of select="title"         xmlns="http://www.w3.org/1999/XSL/Transform" />       <text disable-output-escaping="no"         xmlns="http://www.w3.org/1999/XSL/Transform"> &amp; Associates</text>     </publisher>   </template> </stylesheet> Output: <publisher> &amp; Associates</publisher>