Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSL FO Chapter reference in header or footer

Reply
Thread Tools

XSL FO Chapter reference in header or footer

 
 
Matthias
Guest
Posts: n/a
 
      08-08-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an home page using xsl and jsp with header,footer and navbar written in separate files? Elena Java 0 05-03-2007 08:53 PM
How to create an home page using xsl and jsp with header,footer and navbar written in separate files? Elena Java 0 05-03-2007 08:52 PM
[XSL] generating links to chapter, header, subheaders with autonumeration jszczepankiewicz@gmail.com XML 3 03-06-2007 11:08 AM
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM



Advertisments