<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Michael,<br>
<br>
I am surprised that <br>
<blockquote><small>&lt;fo:inline&gt;W&lt;/fo:inline&gt;&lt;fo:inline&gt;A&lt;/fo:inline&gt;&lt;fo:inline&gt;V&lt;/fo:inline&gt;
  <br>
  </small></blockquote>
<br>
gives different output to:<br>
<br>
<blockquote><small>&lt;fo:inline&gt;WAV&lt;/fo:inline&gt;</small><br>
</blockquote>
<br>
I am trying to comparing PDF output that is generated in different ways
and want to make sure that it produces exactly the same results for
unit testing purposes. For example, in one case some content make come
from a database and in the other the content is input directly - in
both cases the text content is the same but there may be some extra
fo:inline containers.<br>
<br>
I expected the two PDF/PS outputs to be identical as I considered an
fo:inline with no attributes to be a content neutral container. I
couldn't see anywhere in the spec that said that they are not.<br>
<br>
Given that they are not in XEP, is there a way to ensure that the
output is identical, other than to strip empty fo:inline elements prior
to transforming (this would be a costly step that I'd like to avoid)?<br>
<br>
Regards,<br>
Justin.<br>
Michael Sulyaev wrote:
<blockquote cite="mid:4912E464.7080809@renderx.com" type="cite">Justin
Lipton wrote:
  <br>
  <blockquote type="cite">Any idea what could be causing this
difference?
    <br>
  </blockquote>
  <br>
Hello Justin.
  <br>
I have inspected the files. Can you claim any of the two renderings
being wrong? I cannot. The reason for the difference is likely to be
the [special] handling of white space at the end of a text node (after
':' in a1.fo).
  <br>
  <br>
You would not be surprised that
  <br>
&lt;fo:inline&gt;W&lt;/fo:inline&gt;&lt;fo:inline&gt;A&lt;/fo:inline&gt;&lt;fo:inline&gt;V&lt;/fo:inline&gt;
  <br>
is rendered differently from
  <br>
&lt;fo:inline&gt;WAV&lt;/fo:inline&gt;
  <br>
, would you? Kerning may not happen in the former case (across element
boundaries).
  <br>
  <br>
But why do you compare the renderings of two similar but different FO
files? What is your goal? Regression testing? Than why are the FOs
different?
  <br>
  <br>
Regards,
  <br>
Michael Sulyaev
  <br>
RenderX
  <br>
-------------------
  <br>
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
  <br>
in the body of the message to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@renderx.com">majordomo@renderx.com</a> from the address
  <br>
you are subscribed from.
  <br>
(*) By using the Service, you expressly agree to these Terms of Service
<a class="moz-txt-link-freetext" href="http://www.renderx.com/terms-of-service.html">http://www.renderx.com/terms-of-service.html</a>
  <br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title>Exari Signature</title>
<basefont size="2" face="Arial, Helvetica, sans-serif" color="#666666">
<div>
<p style="font-family: sans-serif;" align="left"> <strong>Justin Lipton</strong><br>
<a href="mailto:justin.lipton@exari.com">justin.lipton@exari.com</a><br>
Level 7, 10-16 Queen Street, Melbourne 3000 Australia <br>
Tel +61 3 9621 2775 | Fax +61 3 9621 2776 <br>
</p>
</div>
<div>
<p style="font-family: sans-serif;" align="left"> <strong>Exari Systems</strong><br>
Boston | London | Melbourne | Munich<br>
<a href="http://www.exari.com">www.exari.com</a></p>
<p style="font-family: sans-serif;" align="left"><strong>Really
Important Notice</strong><br>
<small>Actually, this is only important if this email was sent to you
by mistake or if someone sent it to you when they shouldn't have. If
you got it by mistake, please reply and tell us so we can re-send it to
the right person. If you got it from someone who should know better,
please tell them they're in big trouble. In either case, please don't
forward it on to anyone else. Or print it. Or talk about it. Otherwise
you'll be in big trouble too.</small><br>
<br>
<a href="http://www.exari.com/document-assembly.html"><img
 alt="exari logo" src="cid:part1.06000708.02090804@exari.com"
 align="bottom" border="0" height="24" width="72"></a><br>
<font size="1"><strong>For Contract Relief</strong></font> </p>
</div>
</div>
</body>
</html>