#29837 [Ver->Csd]: disable-output-escaping = "yes", ignored
| From: | rrichards@php.net | Date: | Tue, 14 Dec 2004 11:18:06 +0000 |
| Subject: | #29837 [Ver->Csd]: disable-output-escaping = "yes", ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70202@lists.php.net to get a copy of this message | ||
ID: 29837
Updated by: rrichards@php.net
Reported By: tetsuo at scriptsphp dot org
-Status: Verified
+Status: Closed
Bug Type: XSLT related
Operating System: Linux
PHP Version: 5.0.1
New Comment:
First off, your reproduce scripts dont work under xsltproc - latest
libml/libxslt (undefined entities - nbsp). Anways...
A new parameter has been added for PHP 5.1 (in CVS now) for loading
documents. You would need to load your xsl sheets and use a CDATA
node:
<xsl:text
disable-output-escaping='yes'><![CDATA[A a]]></xsl:text>
by:
$xsl->load( $xslfile, LIBXML_NOCDATA); as the CDATA must be internally
converted to TEXT nodes for the disable-output-escaping to work
(xsltproc does this automatically for stylesheets).
For 5.0.x you will need to do a workaround using:
<xsl:text
disable-output-escaping='yes'>A&nbsp;&nbsp;&nbsp;a</xsl:text>
Previous Comments:
------------------------------------------------------------------------
[2004-10-12 18:45:35] gantonet at free dot fr
Same problem with PHP 5.0.2 version for Windows
Here's what I get from phpinfo()
PHP API 20031224
PHP Extension 20040412
Zend Extension 220040412
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.11
xsl
XSL enabled
libxslt Version 1.1.7
libxslt compiled against libxml Version 2.6.11
EXSLT enabled
libexslt Version 0.8.5
------------------------------------------------------------------------
[2004-09-06 15:53:48] plumber at gnu-darwin dot org
this example like other produces a seg fault
################
new XsltProcessor
################
php 5.0.1-darwin
XSL
enabled
libxslt Version
1.1.8
libxslt compiled against libxml Version
2.6.11
EXSLT
enabled
libexslt Version 1.1.8
------------------------------------------------------------------------
[2004-08-27 09:27:31] chregu@php.net
I'll try to have a look at it, when my time permits...
------------------------------------------------------------------------
[2004-08-25 16:37:29] tetsuo at scriptsphp dot org
Description:
------------
CDATA sections in XSL templates
that are enclosed
in <xsl:text disable-output-escaping="yes"> give output
that IS escaped but shouldn't be.
I've been testing the transformation with xsltproc and
everything behaves correctly.
libxslt Version 1.1.6
libxslt compiled against libxml Version 2.6.9
Reproduce code:
---------------
http://tetsuo.scriptsphp.net:81/XsltTest.php
http://tetsuo.scriptsphp.net:81/xslttest/test.xsl
http://tetsuo.scriptsphp.net:81/xslttest/test.xml
Expected result:
----------------
... ...
Actual result:
--------------
... &nbsp; ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29837&edit=1