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

Re: Inserting header and footer in xsl

Subject: Re: Inserting header and footer in xsl
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 08 Dec 2008 14:12:55 -0500
Re:  Inserting header and footer in xsl
At 2008-12-08 23:18 +0530, Kalpana Pathak wrote:
I would like to insert header and footer in my PDF output using the
xsl file. For example, I get the the page numbers in the footer in the
PDF output. But, now I want the manual name also to be appeared in the
footer and section name to be appeared in the header.

Can anyone tell me which are the attributes/elements I need to place
in the xsl file?

Since you are already using XSL-FO according to your first sentence, in the stylesheet you'll find reference to <fo:page-number/>. That is the construct that is exposing the page number in the resulting footer.


That has to be in an <fo:block> because using <fo:block> is the only way to create lines using XSL-FO.

Inside that block you'll need to change your XSLT to fetch the manual and section values from your XML and place them around the page number as desired.

There are no "automatic" elements or attributes ... you'll have to do the work of fetching the needed content and use the desired formatting.

I hope this helps.

. . . . . . . . Ken



--
Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes:
:  Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.