Re: Formatting of empty elements
BERGER Mathias <[email protected]>
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Hussein,
thank you for your help. Sorry for sending you the wrong Output file the last time.
Obviously you could reproduce my problem as you were giving advices. This helped for table cells, thanks.
But I am still having the same problems with the additional line at the end of RTF output documents. I attached my FO and RTF-output and also a screenshot to make the issue more clear. As you can see I am just creating a document with a single block containing one word. When creating the document with XMLMind there is another line added to the document. The first line is the block I set and is correct, with having Arial set. But I am also getting an additional second line, with Times as Font and another font size. How can I prevent XMLMind from creating this line?
When looking into the RTF in some editor, I can also see that there is a font table added by XMLMind.
{\rtf1\ansi\ansicpg1252\deff0
{\fonttbl
\f0\froman\fcharset0 Times;
\f1\fswiss\fcharset0 Helvetica;
\f2\fmodern\fcharset0 Courier;
\f3\ftech\fcharset2 Symbol;
\f4\fnil\fcharset0 Arial;
}
When changing f0 to Arial by editing the RTF file it works as intended. I still get an additional line in the output document, but at least it's set to Arial (still with the wrong font size).
How can I prevent XMLMind from adding that certain font table and additional lines to the output document? Is there any configuration to be set? I don't need a font table with 5 different font styles, there should only be Arial used.
This time I used XFC Version 4.5. As you already said the behaviour is exactly the same.
Target Word Processor: MS Word 2003 / 2007; Libre Office 3.4.4 (same behaviour for all).
Kind Regards,
Mathias Berger
________________________________________
Von: Hussein Shafie [[email protected]]
Gesendet: Freitag, 4. November 2011 17:33
Bis: BERGER Mathias
Cc: [email protected]
Betreff: Re: [XFC] Formatting of empty elements
Mathias Berger wrote:
> I am having problems with formatting of empty blocks and table cells. It
> seems that the formatting of these empty elements is not possible. See
> my attached FO, all affected elements are formatted with Arial 10pt.
> When opening the output RTF document
The output.rtf file you sent us is in fact an ODT file, which I cannot
open in Word. But never mind...
> it seems that this attributes are
> getting ignored, the empty table cells as well as the empty block are
> formatted by Word. Depending on the version of Word the Font is “Times
> 12pt” (2003) or “Calibri 11pt” (2007). As you can see in my attached FO
> file the table cells are set to Arial 10pt, as well as the empty block
> at the end of the document.
>
After generating output.rtf using XMLmind XSL-FO Converter 4.5, I cannot
reproduce what you describe. See attached screenshots. But never mind
that too...
> My question now is: Is there any way to format these empty elements?
> It’s pretty much important because this brakes our table formatting –
> the line spacing of the table rows is getting different in output
> documents.
>
> XMLmind XSL-FO Converter v4.2p1
This old version is no longer supported. However I don't see why v4.5
would differ from v4.2p1 when it comes to empty table cells.
>
> Platform: Java
>
> Target Word Processor: MS-Word 2003 / 2007
--> My advice is to never generate empty table cells. Instead please
consider generating table cells containing a block containing a single
non-breaking space character ( ). This is what I do in all my own
XSLT stylesheets and it works fine. See attached screenshots
*_with_nbsp.png.
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support
additional-line.png
(image/png, 112.1 KB) - not displayed
test.fo
(application/octet-stream, 1.4 KB) - not displayed
test.rtf
(application/msword, 928 B) - not displayed