Bertrand I am struggling with setting table-cell attributes - they just do not seem to work. Attached are two files, based on the test/samples files from the site below.
On my machine, formatting of blocks work fine, but formatting of table-cells does not, despite what the spec says. Perhaps I am missing something really simple? Thanks Derek >>> "Bertrand Delacretaz" <[EMAIL PROTECTED]> 2007/09/06 05:11 PM >>> On 9/6/07, Derek Hohls <[EMAIL PROTECTED]> wrote: > ...Does anyone here have any experience with creating RTF files, > using the FO/jfor approach?... Yes - I wrote the original jfor code a looooooooooong time ago, it was quite limited at the time. I haven't followed the latest developments in FOP, but you might want to look at the original jfor XSL-FO samples at http://jfor.cvs.sourceforge.net/jfor/jfor/samples/cocoon/ These were created and tweaked taking into account jfor's limitations, so they are a good overview of what works. Stuff that's not in those samples probably isn't implemented (or wasn't in the jfor times, again I'm not sure about the status in FOP). HTH, -Bertrand --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- tell cocoon to use jfor to convert this to RTF format --> <?cocoon-format type="xslfo/rtf"?> <fo:root xmlns:html="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm" margin-bottom="0.3cm" margin-top="0.1cm" page-width="21cm" page-height="29.7cm" master-name="first"> <fo:region-body margin-top="2.0cm"/> <fo:region-before extent="0.5cm"/> <fo:region-after extent="0.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-name="first"> <fo:flow flow-name="xsl-region-body"> <fo:block font-weight="bold">jfor test document - cell padding in tables - font size - text alignment.</fo:block> <fo:block font-size="12pt" font-style="italic"> font-size="12pt" font-style="italic" Note that jfor V0.4.9 uses RTF 1.6 (word 2000) padding definitions, and tries to compute a "reasonable" RTF 1.5 horizontal padding value out of the RTF 1.6 values. <fo:block/> Precise padding control will not work with jfor V0.4.9 for RTF 1.5 readers. </fo:block> <fo:block>The table that follows has in the fo:table tag following attributes: <fo:block/> padding="5pt"</fo:block> <fo:table padding="5pt"> <fo:table-column column-width="30mm"/> <fo:table-column column-width="90mm"/> <fo:table-column column-width="50mm"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block>Here is a standard text with table padding 5 pt for all borders</fo:block> </fo:table-cell> <fo:table-cell padding-right="20pt"> <fo:block text-align="start">block: text-align="start" table-cell padding-right="20pt" default-font-size="???" Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> <fo:block font-size="8pt" text-align="end">block: font-size="8pt" text-align="end"</fo:block> Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block font-size="8pt">block: font-size="8pt" Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> <fo:table-cell padding-left="20pt"> <fo:block text-align="center">block: text-align="center" Here is set the attribute padding-left="20pt", there are also attributes: padding-top, padding-bottom and padding-right. Else the table or row padding is valid. <fo:block/> ATTENTION: if the top padding set to 20 pt, word has a bug, i think. Notice also the top(here with padding-left) and bottom area is expanded to the row </fo:block> </fo:table-cell> <fo:table-cell padding-top="20pt"> <fo:block text-align="justify">block: text-align="justify" Here is set the attribute padding-top="20pt", there are also attributes: padding-left, padding-bottom and padding-right. Else the table or row padding is valid. <fo:block/> ATTENTION: if the left padding set to 20 pt, word has a bug, i think. </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row padding-top="10pt"> <fo:table-cell> <fo:block>in this row the top padding is set to 10 pt</fo:block> </fo:table-cell> <fo:table-cell> <fo:block> Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> <!--end of test table--> </fo:table> <fo:block id="terminator">end of test document</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- tell cocoon to use jfor to convert this to RTF format --> <?cocoon-format type="xslfo/rtf"?> <fo:root xmlns:html="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm" margin-bottom="0.3cm" margin-top="0.1cm" page-width="21cm" page-height="29.7cm" master-name="first"> <fo:region-body margin-top="2.0cm"/> <fo:region-before extent="0.5cm"/> <fo:region-after extent="0.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-name="first"> <fo:flow flow-name="xsl-region-body"> <fo:block font-weight="bold">jfor test document - cell padding in tables - font size - text alignment.</fo:block> <fo:block font-size="12pt" font-style="italic"> font-size="12pt" font-style="italic" Note that jfor V0.4.9 uses RTF 1.6 (word 2000) padding definitions, and tries to compute a "reasonable" RTF 1.5 horizontal padding value out of the RTF 1.6 values. <fo:block/> Precise padding control will not work with jfor V0.4.9 for RTF 1.5 readers. </fo:block> <fo:block>The table that follows has in the fo:table tag following attributes: <fo:block/> padding="5pt"</fo:block> <fo:table padding="5pt"> <fo:table-column column-width="30mm"/> <fo:table-column column-width="90mm"/> <fo:table-column column-width="50mm"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block>Here is a standard text with table padding 5 pt for all borders</fo:block> </fo:table-cell> <fo:table-cell padding-right="20pt" text-align="start"> <fo:block>table-cell: text-align="start" table-cell padding-right="20pt" default-font-size="???" Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> <fo:table-cell font-size="8pt" text-align="end"> <fo:block> <fo:block>table-cell: font-size="8pt" text-align="end"</fo:block> Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell font-size="8pt"> <fo:block>table-cell: font-size="8pt" Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> <fo:table-cell padding-left="20pt" text-align="center"> <fo:block>table-cell: text-align="center" Here is set the attribute padding-left="20pt", there are also attributes: padding-top, padding-bottom and padding-right. Else the table or row padding is valid. <fo:block/> ATTENTION: if the top padding set to 20 pt, word has a bug, i think. Notice also the top(here with padding-left) and bottom area is expanded to the row </fo:block> </fo:table-cell> <fo:table-cell padding-top="20pt" text-align="justify"> <fo:block>table-cell: text-align="justify" Here is set the attribute padding-top="20pt", there are also attributes: padding-left, padding-bottom and padding-right. Else the table or row padding is valid. <fo:block/> ATTENTION: if the left padding set to 20 pt, word has a bug, i think. </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row padding-top="10pt"> <fo:table-cell> <fo:block>in this row the top padding is set to 10 pt</fo:block> </fo:table-cell> <fo:table-cell> <fo:block> Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> Anche la copertina di questo numero merita due parole piu del solito, perche segna l'entrata di Ipso Facto nel sito Undo.net, i cui creatori hanno disegnato questa copertina con i materiali del sommario del numero stesso. </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> <!--end of test table--> </fo:table> <fo:block id="terminator">end of test document</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
