From: phpdocs at pointbeing dot net Operating system: Red Hat Linux release 7.3 (Valha PHP version: 4.3.2 PHP Bug Type: XSLT related Bug description: XSLT_SABOPT_DISABLE_ADDING_META - if false generates invalid XML
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 bug report at http://bugs.php.net/?id=25948&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25948&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25948&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25948&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25948&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25948&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25948&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25948&r=support Expected behavior: http://bugs.php.net/fix.php?id=25948&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25948&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25948&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25948&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25948&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25948&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25948&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25948&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25948&r=float