<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Have you tried setting <xsl:output indent="no"/>?<br>
<br>
Michael Kay<br>
Saxonica<br>
<br>
<div class="moz-cite-prefix">On 15/01/2013 08:56, SoTaNeZ wrote:<br>
</div>
<blockquote
cite="mid:CAJypjWfh_rRKNR0YHvnRUhysv51EsyCphHMkJf5X+bwmhoTEDg@mail.gmail.com"
type="cite">Hello.
<div><br>
<div>I have some complex elements in which their texts are mixed
with some HTML markup that I treat as XML elements. For
example:</div>
<div><br>
</div>
<div>------------------------------------------------------</div>
<div>
<div> <paragraph align="justified"></div>
<div> According to the normalized curve A (LA</div>
<div> <sub>eq inter</sub></div>
<div> ) the values...</div>
<div> </paragraph ></div>
</div>
<div>------------------------------------------------------</div>
<div><br>
</div>
<div>The above example is in PrettyFormat.</div>
<div><br>
</div>
<div>My intention is to use an XSL to transform this text to
HTML, keeping the HTML representation, so using "xsl:copy-of"
I can copy the whole paragraph as is.</div>
<div>The problem is that the XML elements inserted between the
text are represented in a new line, so the XLT transformation
adds both white spaces before and after these elements in the
HTML output:</div>
<div><br>
</div>
<div>
------------------------------------------------------</div>
<div>
<div>According to the normalized curve A (LA <font size="1">eq
inter</font> ) the values...</div>
</div>
<div>------------------------------------------------------</div>
<div><br>
</div>
<div>when the output I want should be:</div>
<div><br>
</div>
<div>------------------------------------------------------</div>
<div>According to the normalized curve A (LA<font size="1">eq
inter</font>) the values...</div>
<div>------------------------------------------------------</div>
<div><br>
</div>
<div>I cannot use the CompactFormat, because I need these XMLs
to be readable by humans.</div>
<div><br>
</div>
<div>The problem is solved if I manually place these inner XML
elements in the same line with the rest of the text:</div>
<div><br>
</div>
<div>------------------------------------------------------</div>
<div>
<div> <paragraph align="justified"></div>
<div> According to the normalized curve A
(LA<sub>eq inter</sub>) the values...</div>
<div> </paragraph ></div>
</div>
<div>------------------------------------------------------</div>
<div><br>
</div>
<div>Is there a way to tell JDOM to format complex XML elements
(those having text and other elements) this way, or maybe
other workarounds?</div>
<div><br>
</div>
<div>I prefer to avoid post-processing of the outputted XMLs
files...</div>
<div><br>
</div>
<div>Thank you very much.</div>
</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
To control your jdom-interest membership:
<a class="moz-txt-link-freetext" href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a></pre>
</blockquote>
<br>
</body>
</html>