Re: Formatting of empty elements
Hussein Shafie <[email protected]>
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Message-ID | <[email protected]> |
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
word2003.png
(image/png, 41.9 KB) - not displayed
word2007.png
(image/png, 66.2 KB) - not displayed
word2003_with_nbsp.png
(image/png, 41.6 KB) - not displayed
word2007_with_nbsp.png
(image/png, 62.6 KB) - not displayed