Subject: Re: [xsl] Troubles with libxslt in PHP again: CDATA in <script> From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Sat, 13 Oct 2007 16:14:50 +0200 |
I'm using whatever php_xsl.dll extension in PHP 5.2.2 gives. I was sure it's libxslt, and this is what processor-version stylesheet says, not much else though:
XSL version: 1.0
Vendor: libxslt
Vendor URL: http://xmlsoft.org/XSLT/
xsl XSL enabled libxslt Version 1.1.7 libxslt compiled against libxml Version 2.6.11 EXSLT enabled libexslt Version 0.8.5
or for the oddest reason, your ISP's
HTTP daemon adds them...
Maybe I wasn't clear on this, but I get these problems on my localhost
machine with PHP 5.2.2. The //<xsl:comment> does the trick on it, but
not when I upload to the hosting running PHP 5.2.5.
But still I think that proves that ISP is not the source of the problem.
script code in CDATA since it is by no means finished. And when I'll
add new code, I don't want to think whether there were characters that
should be escaped or not. If it's all in CDATA, it will be escaped
anyway.
But I'll tell you what -- it doesn't matter here. I just checked, and
even if I remove all the CDATAs from that template and escape the <
manually into <, in the output I get everything wrapped in CDATA
anyway! And < not escaped in it.
Sure I would like to produce XHTML instead, but it doesn't appear to
me that we have come to a solution for doing that.
I'll run on commandline when I'll find some time. But still it is not
so clear on what version of libxslt to run.
As far as I remember the Content-Type metas issue, I ran my stylesheets on standalone libxslt as well but got the same results as with PHP XSL.
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Troubles with libxslt in , Martynas Jusevicius | Thread | Re: [xsl] Troubles with libxslt in , Martynas Jusevicius |
Re: [xsl] Wrapping two different el, George Cristian Bina | Date | Re: [xsl] Troubles with libxslt in , Martynas Jusevicius |
Month |