Subject: Re: [xsl] Troubles with libxslt in PHP again: CDATA in <script> From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Sat, 13 Oct 2007 18:20:31 +0200 |
$domTranObj = $xslProcessor->transformToDoc($domXmlObj); $domHtmlText = $domTranObj->saveXML();
<xsl:text disable-output-escaping="yes"> <script type="text/javascript"> //<![CDATA[ ... here comes the normal text of the scripts .... // ]]> </script> </xsl:text>
HTH, Cheers, -- Abel Braaksma
Oh, somehow I didn't think about it :) Here's what it says for 5.2.2 Win: XSL enabled libxslt Version 1.1.17 libxslt compiled against libxml Version 2.6.26 EXSLT enabled libexslt Version 0.8.13
and for 5.2.5 Linux: XSL enabled libxslt Version 1.1.11 libxslt compiled against libxml Version 2.6.16 EXSLT enabled libexslt Version 1.1.11
I wonder if they're using different versions for Win/Linux or did they switch back to an older version...
<snip />
But didn't we agree back then that there was a bug (non-conformant behaviour) in libxslt? :) I think we might just as well banging our heads on a similar libxslt "feature" here. The "Preventing CDATA output in XHTML" thread also makes me think so. Please take a look at it if you haven't yet :)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Troubles with libxslt in , Martynas Jusevicius | Thread | [xsl] Wrapping two different elemen, Bruno Nahod |
Re: [xsl]Problem with Position()?, Jay Bryant | Date | Re: [xsl]Problem with Position()?, Abel Braaksma |
Month |