472,096 Members | 1,169 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

XSL FO Chapter reference in header or footer

Hi all,

I have a problem with XSL FO. I wrote a handbook for my application in
XML and formats it with xsl:fo (FOP) for PDF output. The handbook has
some chapters. I have to write the actual chapter heading (e.g.
Handbook - Chapter 1 HEADING_OF_CHAPTER_ONE) into the header or footer
to follow our styleguide. I use a template for the header like:

<xsl:template name="Header">
<fo:table table-layout="fixed">
<fo:table-column column-width="25.7cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block line-height="14pt" font-size="13pt"
font-weight="bold" text-align="center">
Handbook - Chapter
.........................................
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>

I call it from the root like this:

<fo:static-content flow-name="xsl-region-after">
<xsl:call-template name="Header"/>
<fo:block text-align="center">
<fo:leader leader-pattern="rule" rule-thickness="1pt"
leader-length="25.7cm"/>
</fo:block>
</fo:static-content>

Anybody an idea how to fill the ........................?

Regards,

Matthias

Aug 8 '06 #1
0 1009

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Neil Jarman | last post: by
7 posts views Thread by xkeops | last post: by
13 posts views Thread by Dan Aldean | last post: by
1 post views Thread by KoosHopeloos | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.