You're right - it wasn't very clear. I've attached an example.
There are no HTML tags in the CDATA. It is simply a few paragraphs of text, separated by line breaks (don't know if they're CRLF or whatever) in the XML.
The website the data was stored on could export to HTML and it formatted the text by basically replacing every newline with a br tag. That way although it was rendered in a paragraph, you still got the breaks where I wanted them.
Main Topics
Browse All Topics





by: abelPosted on 2009-08-19 at 03:32:33ID: 25131126
Not sure I fully understand. Do you mean that the CDATA sections contain HTML layout code? Not sure if this'll help, but if you need to unescape you can use the infamous disable-output-escaping on the xsl:value-of instruction:
ment" disable-output-escaping="t rue" />
<xsl:value-of select="xpath/to/cdata-ele
but if I'm on the wrong track, can you post a bit of your XML and how you want it to look after the XSLT transform?
-- Abel --