[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|