Embedding HTML in XML

doormat

Supreme [H]ardness
Joined
Mar 18, 2000
Messages
4,251
I want to be able to embed HTML in XML. I use CDATA to put it in the doc without having it parsed. But I want to use XSL to transform that back to HTML - and when I use xsl:value-of it converts <, > to escaped charecters. There is something called disable-escaped-output, but MS is the only XSLT engine that supports it. Is there any way around this?

Nevermind - solved it after many hours of googling and trial and error. Needed to drop CDATA and use XSL:copy-of to copy over XHTML elements to the XHTML output without reparsing them.
 
Back
Top