ID: 35627 User updated by: veracon at veracon dot net Reported By: veracon at veracon dot net Status: Bogus Bug Type: XSLT related Operating System: Linux PHP Version: 5.1.1 New Comment:
Unfortunately, it gives me a warning and still removes my linebreaks. Warning: compilation error: file /home/veracon/public_html/vorb/ element output in /home/veracon/public_html/vorb/bug.php on line 22 Warning: invalid value for method: xhtml in /home/veracon/public_html/vorb/bug.php on line 22 (http://www.veracon.net/vorb/bug.phps) Previous Comments: ------------------------------------------------------------------------ [2005-12-11 00:51:13] [EMAIL PROTECTED] User error. You're telling in your xsl stylesheet that you want html, not xhtml. Changing this makes it work: <xsl:output method="xhtml" ... ------------------------------------------------------------------------ [2005-12-11 00:34:58] veracon at veracon dot net 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 this bug report at http://bugs.php.net/?id=35627&edit=1