I am working on XSL FO to convert XML to PDF. Can
anyone suggest, How to set the images always at top or
bottom of the pages?
I am using Apache-fop-0.94.
My XSL is like:
<xsl:template match="fig/graphic">
<fo:block text-align="center">
<fo:external-graphic src="{(_at_)src}"
baseline-shift="-2mm">
<xsl:apply-templates/>
</fo:external-graphic>
</fo:block>
</xsl:template>
Investigate the display-align property:
http://www.w3.org/TR/xsl/#display-align
Then replace
<fo:block text-align="center">
with
<fo:block break-before="page" text-align="center" display-align="before">
Jay Bryant
Bryant Communication Services
http://www.bryantcs.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--