HTML content in XSLT?

  • Thread starter Thread starter jsmunroe
  • Start date Start date
J

jsmunroe

Guest
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
 
Back
Top