#25948 [Opn]: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML
| From: | phpdocs at pointbeing dot net | Date: | Wed, 22 Oct 2003 16:47:14 +0000 |
| Subject: | #25948 [Opn]: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49354@lists.php.net to get a copy of this message | ||
ID: 25948
User updated by: phpdocs at pointbeing dot net
Reported By: phpdocs at pointbeing dot net
Status: Open
Bug Type: XSLT related
Operating System: Red Hat Linux release 7.3 (Valha
PHP Version: 4.3.2
New Comment:
I should add that this occurs when the constant is set to 'false'.
Previous Comments:
------------------------------------------------------------------------
[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