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

Reply via email to