Hello I'm using Fop-0.20.5rc3a to produce a table. The table is formatted fine apart from one column which has an overflow because of the page size. An overflow on this particular column is expected except that I would like the overflow to continue on the row below. Instead the table is formatted so that the content of the column starts one or two rows above that of the row where the headers are explaining what the content is. How can I change the xsl-fo to make the overflow go below the row the content should be formatted on and not above?
I have included xsl below and a .doc file showing how a description is
displayed the row above a description heading.
Any help is much appreciated.
Thanks
James
XSL snippet:
<xsl:attribute-set name="orderlist.table.detail.textcolumns">
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
<xsl:attribute name="border-width"></xsl:attribute>
<xsl:attribute name="display-align">after</xsl:attribute>
<xsl:attribute name="text-align">start</xsl:attribute>
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute name="padding-left">.5mm</xsl:attribute>
<xsl:attribute name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute name="padding-top">.5mm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="orderlist.table.detail.textcolumns3">
<xsl:attribute name="border-top-style">none</xsl:attribute>
<xsl:attribute name="border-bottom-style">none</xsl:attribute>
<xsl:attribute name="border-width">
</xsl:attribute>
<xsl:attribute name="display-align">after</xsl:attribute>
<xsl:attribute name="text-align">start</xsl:attribute>
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute name="padding-left">.5mm</xsl:attribute>
<xsl:attribute name="padding-top">.5mm</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="orderlist.table.detail.blocks">
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute name="padding-left">.5mm</xsl:attribute>
<xsl:attribute name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute name="padding-top">.5mm</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="font-family">sans-serif</xsl:attribute>
</xsl:attribute-set>
<xsl:for-each select="Table">
<fo:table table-layout="fixed">
<fo:table-column column-width="180mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block
space-before.optimum="5mm">
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block
xsl:use-attribute-sets="orderlist.table.detail.blocks">
<xsl:attribute name="background-color">#ffffff</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:value-of select="@Name" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed">
<fo:table-column column-width="67mm" />
<fo:table-column column-width="1mm" />
<fo:table-column column-width="112mm" />
<fo:table-body>
<fo:table-row>
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block font-weight="bold"
background-color="#cccccc" text-align="start" font-size="10pt"
fontfamily="sans-serif">
<xsl:attribute
name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute
name="padding-left">.5mm</xsl:attribute>
<xsl:attribute
name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute
name="padding-top">.5mm</xsl:attribute>
Column</fo:block>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block font-weight="bold"
background-color="#cccccc" text-align="start" font-size="10pt"
font-family="sans-serif">
<xsl:attribute
name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute
name="padding-left">.5mm</xsl:attribute>
<xsl:attribute
name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute
name="padding-top">.5mm</xsl:attribute>
Properties</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed">
<fo:table-column column-width="67mm"
/>
<fo:table-column column-width="1mm" />
<fo:table-column column-width="34mm"/>
<fo:table-column column-width="1mm"/>
<fo:table-column column-width="77mm" />
<fo:table-body>
<xsl:for-each select="Column">
<fo:table-row>
<xsl:if test="position() mod
2 = 1">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns3">
<fo:block
xsl:use-attribute-sets="orderlist.table.detail.blocks">
<xsl:attribute
name="background-color">#eeeeee</xsl:attribute>
<xsl:value-of
select="@Name" />
</fo:block>
</fo:table-cell>
</xsl:if>
<xsl:if test="position() mod
2 = 0">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns3">
<fo:block
xsl:use-attribute-sets="orderlist.table.detail.blocks">
<xsl:attribute
name="background-color">#ffffff</xsl:attribute>
<xsl:value-of
select="@Name" />
</fo:block>
</fo:table-cell>
</xsl:if>
<fo:table-cell>
</fo:table-cell>
<xsl:if
test='./Description'>
<xsl:if test="position() mod
2 = 1">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block font-weight="bold"
background-color="#eeeeee"
text-align="start" font-size="10pt" font-family="sans-serif">
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute name="padding-left">.5mm</xsl:attribute>
<xsl:attribute name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute name="padding-top">.5mm</xsl:attribute>
Description</fo:block>
</fo:table-cell>
</xsl:if>
<xsl:if test="position() mod 2 =
0">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block font-weight="bold"
background-color="#ffffff"
text-align="start" font-size="10pt" font-family="sans-serif">
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute name="padding-left">.5mm</xsl:attribute>
<xsl:attribute name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute name="padding-top">.5mm</xsl:attribute>
Description</fo:block>
</fo:table-cell>
</xsl:if>
<fo:table-cell>
</fo:table-cell>
<xsl:if test="position()
mod 2 = 1">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block
xsl:use-attribute-sets="orderlist.table.detail.blocks">
<xsl:attribu
te name="background-color">#eeeeee</xsl:attribute>
<xsl:value-o
f select="./Description" />
</fo:block>
</fo:table-cell>
</xsl:if>
<xsl:if test="position()
mod 2 = 0">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block
xsl:use-attribute-sets="orderlist.table.detail.blocks">
<xsl:attribu
te name="background-color">#ffffff</xsl:attribute>
<xsl:value-o
f select="./Description" />
</fo:block>
</fo:table-cell>
</xsl:if>
</xsl:if>
</fo:table-row>
<xsl:if test='./DataType'>
<fo:table-row>
<xsl:if test="position()
mod 2 = 1">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns2">
<xsl:attribute
name="background-color">#eeeeee</xsl:attribute>
 
</fo:table-cell>
</xsl:if>
<xsl:if test="position() mod 2 = 0">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns2">
<xsl:attribute
name="background-color">#ffffff</xsl:attribute>
 
</fo:table-cell>
</xsl:if>
<fo:table-cell>
</fo:table-cell>
<xsl:if test="position()
mod 2 = 1">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block font-weight="bold"
background-color="#eeeeee"
text-align="start" font-size="10pt" font-family="sans-serif">
<xsl:attribute
name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute
name="padding-left">.5mm</xsl:attribute>
<xsl:attribute
name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute
name="padding-top">.5mm</xsl:attribute>
DataType</fo:block>
</fo:table-cell>
</xsl:if>
<xsl:if test="position() mod 2 = 0">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block font-weight="bold"
background-color="#ffffff"
text-align="start" font-size="10pt" font-family="sans-serif">
<xsl:attribute
name="padding-right">0.5mm</xsl:attribute>
<xsl:attribute
name="padding-left">.5mm</xsl:attribute>
<xsl:attribute
name="padding-bottom">.5mm</xsl:attribute>
<xsl:attribute
name="padding-top">.5mm</xsl:attribute>
DataType</fo:block>
</fo:table-cell>
</xsl:if>
<fo:table-cell>
</fo:table-cell>
<xsl:if test="position()
mod 2 = 1">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block
xsl:use-attribute-sets="orderlist.table.detail.blocks">
<xsl:attribu
te name="background-color">#eeeeee</xsl:attribute>
<xsl:value-o
f select="./DataType" />
</fo:block>
</fo:table-cell>
</xsl:if>
<xsl:if test="position()
mod 2 = 0">
<fo:table-cell
xsl:use-attribute-sets="orderlist.table.detail.textcolumns">
<fo:block
xsl:use-attribute-sets="orderlist.table.detail.blocks">
<xsl:attribu
te name="background-color">#ffffff</xsl:attribute>
<xsl:value-o
f select="./DataType" />
</fo:block>
</fo:table-cell>
</xsl:if>
</fo:table-row>
</xsl:if>
</xsl:for-each>
</fo:table-body>
</fo:table>
</xsl:for-each>
example.doc
Description: MS-Word document
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
