ncg Posted December 31, 2008 Share Posted December 31, 2008 Hi!I am converting a web page to xml with a xsl stylesheet.I would like to put html in xml elements and display it as it is.For example: <some_element> <strong>HTML inside XML!</strong></some_element> XPath parses the html tags as xml elements.Using value-of on some_element prints only the text (the direct children).I tried enclosing the html in CDATA, but the special characters get escaped (<...) and printed to the output.Any idea?Or should I just change stragegy? Link to comment Share on other sites More sharing options...
ncg Posted December 31, 2008 Author Share Posted December 31, 2008 I found my answer. xsl:copy-of Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.