Subject: Re: [xsl] RE: Trying to use fo:page-number-citation to set the initial-page-number of the next page-sequence From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 11 Jun 2012 15:41:36 -0400 |
>Unrelated to your question, for performance reasons on some >processors you might wish to review your use of "//" in the following:
These are part of the generated code in the GUI development environment and I can't change them.
I think the error message is because I 'hard-coded' that choose in there instead of using the GUI interface and the program doesn't like it.
Or, it could be that you can't nest choose statements. I'm not sure which.
My question is, why not as long as the referenced page number is generated before the referencing page? Is the value of the initial page number evaluated at transform or render?
I understand that the xslt processing happens at a different time than the xsl:fo processing (transform vs render) but I'm looking for a way to tell the renderer which initial page number to use based on the outcome of the xsl:choose so that the renderer either uses "auto" or looks at the page number of the referenced fo:block id to determine the starting page number of the next section if there is a blank page inserted between them.
Likewise, there must be a way to change the page force based on the outcome of the transform such as whether or not there is any content in Section 2.
Here is the Use Case (or requirement statement), setup, and examples:
I need a single output file that contains 2 or 3 sections having a common, continuous page numbering where Section 1 must have an initial page number of 1, start-on-odd, and, unless the optional Section 2 exists, end-on-even, but if Section 2 exists then Section 1 and 2 must be continuous without blank pages between them and, in regards to page number and ending page force, become one Section, but because they may have slightly different footer content they must each have a separate static fo:block for the region-after, and when put together they must end-on-even so that Section 3 physically begins on an separate piece of paper when printed in duplex mode and will end-on-even, even if the logical page numbering says that this is an odd numbered page because the page numbering must logically start with the next page number that follows the end of Section 1-2 regardless of whether a blank page is inserted before it causing there to be a difference between the physical page number and the logic page number.
initial-page-count="1" force-page-count="{ if ( {your-test-for-section-2-exists} ) then 'no-force' else 'end-on-even' }"
I am attempting to dynamically set the starting page numbers so that the "Page # of [total]" on each page accurately reflects only those pages which have content.
Here is what I am doing to attempt this:
...
In other words, If Section 2 is included, Sections 1 and 2 flow together when printed in duplex (both sides of the paper) and insert only one blank page, if needed, that falls between them and Section 3, so that Section 3 starts on the front of the page,
but continue the same page numbering without counting that blank page.
Section 1 = odd Section 2 = none Section 3 = even
Section 1 pages are numbered Page 1 of 7, through 5 of 7.
Physical page 6 is a blank page that is not included in the total page count.
Section 3 pages are numbered Page 6 of 7 through 7 of 7, as physical page 8, and there is no blank page at the end.
P.S. I hope I did this reply correctly so that it posts to the correct thread. This is my first time using an email chain forum.
-- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: Trying to use fo:page-num, Underwood Michelle | Thread | [xsl] pass variable length paramete, Ming Yu |
[xsl] RE: Trying to use fo:page-num, Underwood Michelle | Date | [xsl] pass variable length paramete, Ming Yu |
Month |