Bugs item #555549, was opened at 2002-05-13 10:34 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116035&aid=555549&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: added to XML when creating DOM Initial Comment: I have DOM4J Document, fill it from db (via Element.setText()) and then transform it via XSLT to HTML. When I try to output the filled DOM4J Document to file via org.dom4j.io.XMLWriter everything is OK. However, if I try to create DocumentSource for javax.xml.transform.Transformer, DOM4J adds string at the end of each line in a tag that has its value on more lines (the value contains <cr><lf>). Example: 1)output to file via org.dom4j.io.XMLWriter <field id="Description" type="textarea">line1 line2</field> 2) when I run Transformer without XSL file: TransformerFactory tf = TransformerFactory.newInstance (); Transformer txml = tf.newTransformer(); txml.transform(new DocumentSource(doc), new StreamResult(new File(f))); the output is: <field id="Description" type="textarea">line1 line2 </field> The same happens if you try to create DOM object from DOM4J Document. Occured on this configuration: Win2K, J2SE 1.3, DOM4J 1.3, Xalan 2.3.1. Mail me for more questions Honza Miksatko ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116035&aid=555549&group_id=16035 _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev