[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: output last page number
The idea is to use the same stylesheet for each chapter (since all chapters have the same format but differing contents) and pass certain information, such as the chapter number, as parameters to the stylesheet when processed. So what I need to be able to do is get the last page number from the previous chapter, add one to it and use it as the initial-page-number for the current chapter, then use the last page number from the current to feed to the next, etc. I had originally used separate page-sequences to put all the chapters together in a single pdf, but that made the pdf far too big, and anyhow we need to be able to use the chapters individually. thanks much, Matthew L. Avizinis > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Patrick > Durusau > Sent: Monday, January 21, 2002 2:19 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: output last page number > > > Matthew, > > Matthew L. Avizinis wrote: > > >Hello all, > > I am using Xalan to process some xml files for transformation to fo and > >then fop to write pdf's. I have one xml file for each chapter > of a book and > >I want to have a separate pdf for each chapter. However, the > page numbering > >needs to be continuous from one chapter to the next. I notice > that the only > >information fop needs is fo:page-number to know when to write the actual > >page number to the pdf pages. Is there a way to save the last > page number > >for later use, such as to write it to a temporary file? > >Any suggestions are appreciated and thank you in advance. > > > > > > Are you using separate stylesheets for each chapter? Not automatic but > you could manually use (in each stylesheet): > > <fo: page-sequence > master-reference="chapter" > initial-page-number="yourChapterStartPageNumber" > > to force beginning on a particular page number. > > See: http://www.dpawson.co.uk/xsl/sect3/bk/index.html for very good > coverage of XSL (with examples). > > Patrick > > > Matthew L. Avizinis > >Gleim Publications, Inc. > > 4201 NW 95th Blvd. > > Gainesville, FL 32606 > >(352)-375-0772 ext. 101 > > www.gleim.com > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > -- > Patrick Durusau > Director of Research and Development > Society of Biblical Literature > pdurusau@xxxxxxxxx > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|