Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 20th, 2008, 10:24 AM
Registered User
 
Join Date: Apr 2008
Location: Hyderabad, AP, India.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Headr and footer problem

Hi All,

i am new to XSL:FO. i created a XSL file. When i ran FOP with xsl and xml i got 3 pages pdf. now my problem is..

I want header on first page i don't want on other pages, same like i want footer on last page only.

One more thing is if it is only single page then i need header and footer.
I have try with this:
<fo:layout-master-set>
        <fo:simple-page-master margin-bottom="0.5cm" margin-left="1cm" margin-right="1cm" margin-top="1cm" master-name="firstpage" page-height="28cm" page-width="21cm">
          <fo:region-before region-name="firstpage"/>
          <fo:region-body margin-top="8.5cm" margin-bottom="3cm"/>
        </fo:simple-page-master>

    <fo:simple-page-master margin-bottom="0.5cm" margin-left="1cm" margin-right="1cm" margin-top="1cm" master-name="lastpage" page-height="28cm" page-width="21cm">
          <fo:region-before region-name="lastpage"/>
          <fo:region-body margin-top="3.5cm" margin-bottom="3cm"/>
        </fo:simple-page-master>



        <fo:page-sequence-master master-name="all">


      <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference master-reference="firstpage" page-position="first"/>
          </fo:repeatable-page-master-alternatives>
      <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference master-reference="lastpage" page-position="any"/>
          </fo:repeatable-page-master-alternatives>



        </fo:page-sequence-master>

      </fo:layout-master-set>


      <fo:page-sequence master-reference="all">


    <fo:static-content flow-name="firstpage">

              <xsl:call-template name="header"/>
        <xsl:call-template name ="footer2"/>


    </fo:static-content>

    <fo:static-content flow-name="lastpage">
        <xsl:call-template name="header2"/>
        <xsl:call-template name ="footer"/>
    </fo:static-content>




    <fo:flow flow-name="xsl-region-body">
           <xsl:call-template name="body"/>
        </fo:flow>

      </fo:page-sequence>

Is there any possibilities to do like, could any one can assist me in this regard.

Thanks.
Red.
Reply With Quote
  #2 (permalink)  
Old April 20th, 2008, 03:40 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I suspect this is more of an XSL-FO question - I recommend you check out the mailing list mentioned in reply to your other post.

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The footer doesn't appear Tecris BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 February 21st, 2010 05:39 PM
Footer Format Problem rstelma ASP.NET 2.0 Professional 0 August 14th, 2008 04:48 PM
Footer problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 0 October 4th, 2006 02:03 AM
Can't see footer Bud BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 6 August 25th, 2006 04:28 AM



All times are GMT -4. The time now is 10:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.