b) it doesn't always create a table according to absolute value i.e.
<fo:table border-width="0.1mm" border-style="solid" table-layout="fixed" width="8in">
sometimes it does for smaller values but not for larger values.
c)space-after-optimum is twice as big on the rtf output so setting the stylesheet to 12pt works on pdf as such but looks like 24pt on rtf.
I read this mail http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200601.mbox/[EMAIL PROTECTED] and it says the table problem will be fixed if you use absolute values all throughtout the stylesheet. I believe I have but it doesn't fix my problem. Can someone take me out of my misery and provide me with a solution or tell me rtf output does not support indentation, table width size and correct space after optimum.
Many thanks
Btw my stylesheet is:
<?xml
version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="simple" page-height="29.7cm" page-width="21cm" margin-top="0.2cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body margin-top="2cm"/> <fo:region-before extent="3cm"/> <fo:region-after extent="1.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simple"> <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates select="data"/> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template match="data"> <fo:block> <fo:external-graphic src="">"pic1.jpg" scaling="non-uniform" content-width="16cm" content-height="2.5cm"/> <xsl:apply-templates select="eaddress"/> <xsl:apply-templates select="address"/> <xsl:apply-templates select="date"/> <xsl:apply-templates select="name"/> <xsl:apply-templates select="para1"/> <xsl:apply-templates select="member"/> <xsl:apply-templates select="para2"/> <xsl:apply-templates select="endtype"/> </fo:block> </xsl:template> <xsl:template match="eaddress"> <fo:block border-color="blue" border-width="5mm" color="#669933" font-size="10pt" font-family="sans-serif" line-height="15pt" space-before.optimum="0pt" space-after.optimum="40pt" text-align="center"> <xsl:value-of select="."/> </fo:block></xsl:template>
<xsl:template match="member"><xsl:if test="string-length(name) > 0">
<fo:block font-size="10pt">
<fo:table border-width="0.1mm" border-style="solid" table-layout="fixed" width="8in">
<fo:table-column column-width="4cm"/>
<fo:table-column column-width="4cm"/>
<fo:table-column column-width="5cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<xsl:value-of select="name"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:value-of select="function"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:value-of select="email"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:if>
</xsl:template>
<xsl:template match="address">
<fo:block
border-width="5mm"
font-size="12pt"
font-family="sans-serif"
line-height="2pt"
text-align="right"
space-after.optimum="12pt">
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
<xsl:template match="para1 | para2">
<fo:block text-indent="1in"
font-size="12pt"
font-family="sans-serif"
line-height="15pt"
space-after.optimum="12pt"
space-before.optimum="12pt"
text-align="justify">
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
<xsl:template
match="name"><fo:block font-size="12pt"
font-family="sans-serif"
line-height="15pt"
space-after.optimum="30pt"
text-align="justify">Dear
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
<xsl:template
match="date"><fo:block font-size="12pt"
font-family="sans-serif"
line-height="10pt"
space-after.optimum="30pt"
text-align="justify">Date:
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
<xsl:template
match="endtype"><fo:block font-size="12pt"
font-family="sans-serif"
line-height="15pt"
space-before.optimum="30pt"
text-align="center">Yours
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
</xsl:stylesheet>
