#35627 [NEW]: XSLTProcessor turns my XHTML code into HTML.

From: Date: Sat, 10 Dec 2005 23:34:59 +0000
Subject: #35627 [NEW]: XSLTProcessor turns my XHTML code into HTML.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90214@lists.php.net to get a copy of this message
From: veracon at veracon dot net Operating system: Linux PHP version: 5.1.1 PHP Bug Type: XSLT related Bug description: XSLTProcessor turns my XHTML code into HTML. Description: ------------ When I transform XML/XSLT into XHTML (even with the correct DOCTYPE) it removes the ending slashes of empty elements along with linebreaks disappearing. Reproduce code: --------------- http://www.veracon.net/vorb/bug.phps Expected result: ---------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <h1>Test</h1> <hr /> <p>This is just a test.</p> Actual result: -------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <h1>Test</h1><hr><p>This is just a test.</p> -- Edit bug report at http://bugs.php.net/?id=35627&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35627&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35627&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35627&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35627&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35627&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35627&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35627&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35627&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35627&r=support Expected behavior: http://bugs.php.net/fix.php?id=35627&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35627&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35627&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35627&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35627&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35627&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35627&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35627&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35627&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35627&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35627&r=mysqlcfg

« previous php.bugs (#90214) next »