Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 13, 2006, 1:42 pm
rate this thread
I've run into very disturbing problem, I must use html tags inside one
of my XML node
so I wrote:
$cdataHelp = $DomDocument->createCDATASection($value);
when I dump it as XML
header('Content-Type: text/xml; charset=UTF-8"');
CDATA is displayed (and its HTML tags) properly, when applying a
$xslt = new xsltProcessor();
with XSL stylesheet with:
<xsl:value-of select="help" disable-output-escaping="yes"/>
all < and > become < and > and I can see them in my browser as a
part of text.
it looks like DOM API supports adding CDATA sections but XSLTProcessor
doesn't support it
Is there some work-around for using CDATA + XSLT (PHP5)?
thanks in advance for shedding more light on this problem