Re: Headers and pagination
Dear Tim, et.al., I'm doing the same as you for our newsletter - wanting to change the heading when a new chapter is started. I achieve this by starting a new for each chapter containing a containing the title. I've attached by XSL file. It's in the template for chapter (in body). Any comments gratefully received. http://www.w3.org/1999/XSL/Format"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> http://www.w3.org/1999/XSL/Format";> (Reviewed by ) From , pages, ISBN () Phone: Fax: E-mail: · - · () - [] $ £ The Newsletter of the UK UNIX Users Group Published electronically at http://www.ukuug.org/newsletter/ ISSN Volume , Number Table of Contents Regards, Mick /"\ \ / X ASCII Ribbon Campaign / \ Against HTML Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Headers and pagination
On Wednesday 01 August 2001 01:00, [EMAIL PROTECTED] wrote: > I must be really confused. I thought that the header was defined once and > only once in the page-sequence as static-content and the > page-sequence-master children allowed for the use of different page layouts > for different pages, but not content of the page. > > Anyway, if you could lead me to an example I would be very happy. You can only have one fo:flow per page-sequence, but you can have as many fo:static-content's as you like, and use as many page-masters as you need for one given page-sequence. Every page in a page-sequence could have different page-masters and different headers, footers and sidebars. There should be some examples in FOP already, under docs/examples. Regards, Arved Sandstrom -- Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Halifax, Nova Scotia Wireless * B2B * J2EE * XML - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Headers and pagination
I must be really confused. I thought that the header was defined once and only once in the page-sequence as static-content and the page-sequence-master children allowed for the use of different page layouts for different pages, but not content of the page. Anyway, if you could lead me to an example I would be very happy. Cheers Tim -Original Message- From: Arved Sandstrom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 1 August 2001 10:15 To: [EMAIL PROTECTED] Subject: RE: Headers and pagination At 09:44 AM 8/1/01 +1000, [EMAIL PROTECTED] wrote: >Are you expecting me to test FOP 0.19 or the latest CVS version? If it's the >former then it doesn't do what I tested it for, which is page numbering >continuing on from previous page-sequence while specifying >initial-page-count="auto" for all page-sequences. I tested is by modifying >Trevor's example (see attached). [ SNIP ] Latest CVS. >For my application I'm attempting to convert XML using XSLT to PDF, and in >this case the size of the data in the flow of every page-sequence is >undefined. Continuing the page count from page-sequence to page-sequence >appears to be okay as far as the XSL:FO spec, but I want to change the >header during a page sequence. Let me see if I can make it clearer: > > Page 1 Page 2 Page 3 Page n >- - - - >| Hdr 1 | | Hdr 2 | | Hdr 2 | | Hdr 2 | >| - | | - | | - | | - | >| Flow1 | | Flow1 | | Flow2 | | Flow3 | >| | | | | | | | >- - - - > >Remember all the flows are undefined so Flow 1 could be 1..n pages etc.. If you want to change the header during a page-sequence then you need to use page-sequence-master, and some combo of single-page-master-reference, repeatable-page-master-reference and repeatable-page-master-alternatives. I don't immediately see any stumbling block to what you want to do. Regards, Arved Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Headers and pagination
At 09:44 AM 8/1/01 +1000, [EMAIL PROTECTED] wrote: >Are you expecting me to test FOP 0.19 or the latest CVS version? If it's the >former then it doesn't do what I tested it for, which is page numbering >continuing on from previous page-sequence while specifying >initial-page-count="auto" for all page-sequences. I tested is by modifying >Trevor's example (see attached). [ SNIP ] Latest CVS. >For my application I'm attempting to convert XML using XSLT to PDF, and in >this case the size of the data in the flow of every page-sequence is >undefined. Continuing the page count from page-sequence to page-sequence >appears to be okay as far as the XSL:FO spec, but I want to change the >header during a page sequence. Let me see if I can make it clearer: > > Page 1 Page 2 Page 3 Page n >- - - - >| Hdr 1 | | Hdr 2 | | Hdr 2 | | Hdr 2 | >| - | | - | | - | | - | >| Flow1 | | Flow1 | | Flow2 | | Flow3 | >| | | | | | | | >- - - - > >Remember all the flows are undefined so Flow 1 could be 1..n pages etc.. If you want to change the header during a page-sequence then you need to use page-sequence-master, and some combo of single-page-master-reference, repeatable-page-master-reference and repeatable-page-master-alternatives. I don't immediately see any stumbling block to what you want to do. Regards, Arved Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Headers and pagination
Thanks Arved and Trevor for your help and thanks Arved for the privilege of allowing me to be the 'first known 3rd party tester'. Are you expecting me to test FOP 0.19 or the latest CVS version? If it's the former then it doesn't do what I tested it for, which is page numbering continuing on from previous page-sequence while specifying initial-page-count="auto" for all page-sequences. I tested is by modifying Trevor's example (see attached). To make matters worse I think my full requirement is for something that isn't supported yet by the XSL:FO standard although I'm not sure (I really am just a newbie at this). For my application I'm attempting to convert XML using XSLT to PDF, and in this case the size of the data in the flow of every page-sequence is undefined. Continuing the page count from page-sequence to page-sequence appears to be okay as far as the XSL:FO spec, but I want to change the header during a page sequence. Let me see if I can make it clearer: Page 1 Page 2 Page 3 Page n - - - - | Hdr 1 | | Hdr 2 | | Hdr 2 | | Hdr 2 | | - | | - | | - | | - | | Flow1 | | Flow1 | | Flow2 | | Flow3 | | | | | | | | | - - - - Remember all the flows are undefined so Flow 1 could be 1..n pages etc.. Cheers Tim -Original Message- From: Arved Sandstrom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 31 July 2001 19:50 To: [EMAIL PROTECTED] Subject: Re: Headers and pagination At 05:59 PM 7/31/01 +1000, [EMAIL PROTECTED] wrote: >I know I can get different headers for each page sequence, but I don't know >how to make the page number flow on from the previous page sequence. Using >initial-page-number would work, but I don't know how many pages are in the >first sequence, and I also don't know how many pages are in the subsequent >page sequence. Hi, Tim FOP now implements fully 2 properties on fo:page-sequence that are exactly what you need - 'force-page-count' and 'initial-page-number'. You will be the first known 3rd party tester. :-) The _default_ behaviour of page-numbering is to already do what you want to do (the default behaviour of 'initial-page-number'). The aforementioned properties happen to give you extra flexibility. Also check out the 'format' property... Regards, Arved Sandstrom Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. pages.fo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Headers and pagination
Title: RE: Headers and pagination Hi, I've just been playing with this stuff, and it all seems to work fine. If you don't specify "initial-page-number" the pages will happily keep counting; you can even change the format between page sequences without affecting the count. One thing I did notice: if you use initial-page-number then something tries to force the new page sequence onto an odd page; this does not happen when allowing the page numbers to flow on between sequences. You can prevent this behaviour using force-page-count="no-force" (I'm assuming it defaults to "auto" when using initial-page-count). >FOP now implements fully 2 properties on fo:page-sequence that >are exactly what you need - 'force-page-count' and 'initial- >page-number'. You will be the first known 3rd party tester. :-) >Also check out the 'format' property... I've included a test sample below which works fine with last night's CVS. Just change the commented page-sequence bits to experiment with the different numbering/formatting possibilities. Regards, Twylite -- XML included below, hope your mailer knows what not to do. http://www.w3.org/1999/XSL/Format"> page-height="29.7cm" page-width="21cm" margin-top="2.5cm" margin-bottom="2.5cm" margin-left="2.5cm" margin-right="2cm"> page-height="29.7cm" page-width="21cm" margin-top="2.5cm" margin-bottom="2.5cm" margin-left="2.5cm" margin-right="2cm"> page-height="29.7cm" page-width="21cm" margin-top="2.5cm" margin-bottom="2.5cm" margin-left="2.5cm" margin-right="2cm"> Page: My Reference Manual Page: First page of metadata. Page: First page of body.
Re: Headers and pagination
At 05:59 PM 7/31/01 +1000, [EMAIL PROTECTED] wrote: >I know I can get different headers for each page sequence, but I don't know >how to make the page number flow on from the previous page sequence. Using >initial-page-number would work, but I don't know how many pages are in the >first sequence, and I also don't know how many pages are in the subsequent >page sequence. Hi, Tim FOP now implements fully 2 properties on fo:page-sequence that are exactly what you need - 'force-page-count' and 'initial-page-number'. You will be the first known 3rd party tester. :-) The _default_ behaviour of page-numbering is to already do what you want to do (the default behaviour of 'initial-page-number'). The aforementioned properties happen to give you extra flexibility. Also check out the 'format' property... Regards, Arved Sandstrom Fairly Senior Software Type e-plicity (http://www.e-plicity.com) Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Headers and pagination
Hi all, I'm wondering if anyone can tell me how to have varying headers for the same page sequence or make page numbers flow over a number of page sequences. I don't think I can, but I'm new to all of this and I could've have missed something really simple. I know I can get different headers for each page sequence, but I don't know how to make the page number flow on from the previous page sequence. Using initial-page-number would work, but I don't know how many pages are in the first sequence, and I also don't know how many pages are in the subsequent page sequence. Cheers Tim Keen Analyst Programmer WERD Project Dept of Natural Resources & Mines 4th Floor, Mineral House 41 George St Brisbane QLD 4000 (07) 3224 2559 (ph) (07) 3224 7963 (fax) [EMAIL PROTECTED] The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]