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

Re: FO: next to last page

Subject: Re: FO: next to last page
From: Philip Vallone <philip.vallone@xxxxxxxxxxx>
Date: Thu, 06 May 2010 15:11:48 -0400
Re:  FO: next to last page
Hi All,

This is possible and I believe this is a requirement for MIL-STD-40051. We use
Apache FOP 0.95 and have this working using condition page sequences and
markers.

If you would like a sample FO, email me directly. Happy to help.

Regards,

Phil


On May 6, 2010, at 2:30 PM, Don Smith wrote:

> Thanks Ken. I suspected as much but wanted to confirm.
>
> Don
>
> --- On Thu, 5/6/10, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
>
>> From: G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx>
>> Subject: Re:  FO: next to last page
>> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>> Date: Thursday, May 6, 2010, 10:00 AM
>> At 2010-05-06 07:44 -0700, Don Smith
>> wrote:
>>> I've got a requirement to end chapters on even pages
>> and, if that last page turns out to be blank, reference it
>> on the next to last page. Assuming that I have 5 pages of
>> content and output a blank page for page 6, then on page 5 I
>> need this in a static content region:
>>>
>>> Page: 5 / 6 blank
>>>
>>> I've got everything working in terms of reference,
>> etc. My problem is isolating only the next to last page. I
>> can't see any way to do that. Right now I'm getting the
>> reference on all my odd pages; I only want it if it's next
>> to last.
>>>
>>> Am I missing the way to accomplish this or is it
>> impossible?
>>
>> It is not possible in the way you express the
>> requirement.  One cannot do arithmetic with page
>> numbers
>>
>> When my customers have come to me with this, the way I've
>> convinced them to go is to use:
>>
>> Page: 5 / next blank
>>
>> I hope this helps.
>>
>> . . . . . . . . . . . Ken
>>
>> --
>> Principles of XSLT for XQuery Writers: San Francisco,CA
>> 2010-05-03
>> XSLT/XQuery/UBL/Code List training: Trondheim,Norway
>> 2010-06-02/11
>> Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
>> Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
>> G. Ken Holman
>>      mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
>> 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.