[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FOP and keep-with help??!

Subject: FOP and keep-with help??!
From: "Helen McArthur" <helen_166@xxxxxxxxxxx>
Date: Thu, 22 Mar 2007 17:10:33 +0000
 FOP and keep-with help??!
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.