Is there a way to parse HTML within an XML element in an XSLT stylesheet? I am using XSLT to create a template but I want the XML instance to contain HTML markup. I find that the value-of element ignores the HTML markup altogether. There just has to be a solution to this. I can imagine people running into this all the time.

I figured out my answer. :)

First, don't use CTEXT in the XML instance. Second, instead of using "value-of", use "copy-of". It works beautifully. :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.