ID:               35627
 Updated by:       [EMAIL PROTECTED]
 Reported By:      veracon at veracon dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         XSLT related
 Operating System: Linux
 PHP Version:      5.1.1
 New Comment:

User error. You're telling in your xsl stylesheet that you want html,
not xhtml. Changing this makes it work:

<xsl:output method="xhtml" ...




Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to