[xsl] FOP and keep-with help??!

Subject: [xsl] FOP and keep-with help??!
From: "Helen McArthur" <helen_166@xxxxxxxxxxx>
Date: Thu, 22 Mar 2007 17:10:33 +0000
i want to force the titles to stay with each heading in the pdf output. I tried to get this to work:

<fo:block font-family="Times Roman" font-size="12pt" keep-with-next.within-page="always">
<fo:leader leader-pattern="rule" rule-thickness="1.0pt" leader-length="6.5in" color="black" />
</fo:block>
<fo:block font-size="14pt" font-weight="bold" font-family="Times New Roman" space-after="2mm">
PROJECT ACTIVITY
</fo:block>
<xsl:for-each select="Associations/Association">
<fo:block font-size="12pt" font-family="Times New Roman">
<fo:inline font-weight="bold" text-decoration="underline">
<xsl:value-of select='Name'/>
</fo:inline>
: <xsl:value-of select='Comments'/>
</fo:block>
<fo:block font-size="12pt" font-family="Times New Roman" space-after="2mm">
<fo:inline font-weight="bold">
Responsibilites :
</fo:inline>
<xsl:value-of select='Role/Comments'/>
</fo:block>
</xsl:for-each>



but it didnt and i think FOP cant render it for some reason.


i then tried using tables but again there is no change

<fo:table table-layout="fixed" width="100%">

<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<fo:leader leader-pattern="rule" rule-thickness="1.0pt" leader-length="6.5in" color="black"/>
</fo:block>
</fo:table-cell>
</fo:table-row>


<fo:table-row keep-with-previous="always">
<fo:table-cell>
<fo:block font-size="14pt" font-weight="bold" font-family="Times New Roman" space-after="2mm">
REFERENCES
</fo:block>
</fo:table-cell>
</fo:table-row>


<xsl:for-each select="References/Reference">


<fo:table-row keep-with-previous="always">
<fo:table-cell>
<fo:block font-size="12pt" font-family="Times New Roman">
<fo:inline font-weight="bold" text-decoration="underline">
<xsl:value-of select='PersonName/FormattedName'/>
</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-with-previous="always">
<fo:table-cell>
<fo:block font-size="12pt" font-family="Times New Roman" >
<fo:inline font-weight="bold">
Address:
</fo:inline>
<xsl:value-of select='ContactMethod/PostalAddress/DeliveryAddress/BuildingNumberr'/>,
<xsl:value-of select='ContactMethod/PostalAddress/DeliveryAddress/StreetName'/>,
<xsl:value-of select='ContactMethod/PostalAddress/Region'/>,
<xsl:value-of select='ContactMethod/PostalAddress/Municipality'/>,
<xsl:value-of select='ContactMethod/PostalAddress/PostalCode'/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-with-previous="always">
<fo:table-cell>
<fo:block font-size="12pt" font-family="Times New Roman">
<fo:inline font-weight="bold">
Phone Number:
</fo:inline>
<xsl:value-of select='ContactMethod/Telephone/FormattedNumber'/>
</fo:block>
</fo:table-cell>
</fo:table-row>


<fo:table-row keep-with-previous="always">
<fo:table-cell>
<fo:block font-size="12pt" font-family="Times New Roman" space-after="2mm">
<fo:inline font-weight="bold">
Email:
</fo:inline>
<xsl:value-of select='ContactMethod/InternetEmailAddress'/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>


can you help me?

_________________________________________________________________
Txt a lot? Get Messenger FREE on your mobile. https://livemessenger.mobile.uk.msn.com/


Current Thread