Jump to content

Html In A Xml Element


ncg

Recommended Posts

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 (&lt...) and printed to the output.Any idea?Or should I just change stragegy?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...