Bugs item #1277785, was opened at 2005-09-01 00:07
Message generated for change (Comment added) made by maartenc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1277785&group_id=16035

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Lukas Theussl (lukas_theussl)
Assigned to: Maarten Coene (maartenc)
Summary: empty elements are always expanded

Initial Comment:
The current XMLWriter always expands empty elements
(ie, <br/> becomes <br></br>). This is a problem
because some browsers (IE) interprete <br></br> as two
newlines instead of one.

----------------------------------------------------------------------

>Comment By: Maarten Coene (maartenc)
Date: 2006-03-23 22:11

Message:
Logged In: YES 
user_id=178745

Fixed in CVS,
now XMLWriter should write <br/> if you call
setExpandEmptyElements(false) on OutputFormat.

thanks!
Maarten

----------------------------------------------------------------------

Comment By: Nikolay Metchev (nikolaymetchev)
Date: 2006-02-27 19:12

Message:
Logged In: YES 
user_id=637710

The problem seems to be in XMLWriter.writeElement() line
941. If the element has a namespace defined then it has
nonzero nodecounts and doesn't call the
writeEmptyElementClose() method. The check should be
enhanced to check if the element doesn't have any child
elements or text nodes. 

----------------------------------------------------------------------

Comment By: Lance D Bader (ldbader)
Date: 2005-12-08 22:27

Message:
Logged In: YES 
user_id=615534

Actually, the impact goes beyond double spacing in the
Internet Explorer.  The Maven xDoc plug-in uses dom4J while
generating the XHTML output and this defect causes it to
generate explicit end tags for <link>, <meta>, and <input>
even if the unary format is used in the XML input file.

Since content is prohibited in these elements, explicit end
tags are considered "contrary to industry standards".  There
can be surprising repercussions in some XSLT transformations.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1277785&group_id=16035


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to