#25948 [Opn->Bgs]: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML
| From: | iliaa@php.net | Date: | Thu, 23 Oct 2003 01:08:31 +0000 |
| Subject: | #25948 [Opn->Bgs]: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49379@lists.php.net to get a copy of this message | ||
ID: 25948
Updated by: iliaa@php.net
Reported By: phpdocs at pointbeing dot net
-Status: Open
+Status: Bogus
Bug Type: XSLT related
Operating System: Red Hat Linux release 7.3 (Valha
PHP Version: 4.3.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
PHP only sets options, the actual addition is performed by the
Sablotron library. Hence the bug is in it, not PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-10-22 12:47:14] phpdocs at pointbeing dot net
I should add that this occurs when the constant is set to 'false'.
------------------------------------------------------------------------
[2003-10-22 06:10:41] phpdocs at pointbeing dot net
Description:
------------
The XSLT_SABOPT_DISABLE_ADDING_META constant, set during compilation,
automatically adds:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
to the output when it detects that the output is likely to be HTML.
Problem is not the fact that it adds it - but that this line isn't
actually valid XML - thus breaking the validity of any output!
Reproduce code:
---------------
Occurs whenever xslt_process() is used to generate HTML output.
Examples -
XSL File:
http://www.pointbeing.net/wap2html/source.php?file=01.xsl
XML Source:
http://www.pointbeing.net/wap2html/tv01.wml
Expected result:
----------------
I would like to see valid XML generated, for example:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Actual result:
--------------
This is output automatically:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
This apparently cannot be disabled at runtime.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25948&edit=1