When I do the same thing but I remove the <span> around the <xsl:value-of>, the CDATA wrapper gets produced just fine.
Of course when I add the span to the rich text editor (the "text" property is of type RTE), it works just fine, but that's not something I want my editors to have to worry about.
CDATA section around an HTML block
I need to be able to wrap this piece of XML in a CDATA section:
So the result should look like this:
However, when I change the XML output tag to do so, it doesn't wrap anything in CDATA:
When I do the same thing but I remove the <span> around the <xsl:value-of>, the CDATA wrapper gets produced just fine.
Of course when I add the span to the rich text editor (the "text" property is of type RTE), it works just fine, but that's not something I want my editors to have to worry about.
So how do I do this?
Try adding "span" to the cdata-section-elements attribute.
EDIT: Scrub all that, just realised it won't work cause of your thread you posted a few months back...
Ah yes, should've said that I tried that as well, I then get the CDATA block only in the span element.
is working on a reply...