[xep-support] Re: Display of static Page after Dynamic page

From: Kevin Brown <kevin@renderx.com>
Date: Tue May 15 2012 - 15:37:14 PDT

Alternatively, if you wish to use FO with VisualXSL, you would need to
override the generation of page-templates based on a custom-process attached
to the page of the dynamic section. You would output something like this for
that sequence in question:

        <fo:layout-master-set>
                <fo:page-sequence-master master-name="chapter-master">
                        <fo:repeatable-page-master-alternatives>
                                <fo:conditional-page-master-reference
odd-or-even="odd"
        
master-reference="chapter-rest-odd"/>
                                <fo:conditional-page-master-reference
odd-or-even="even"
        
master-reference="chapter-rest-even"/>
                        </fo:repeatable-page-master-alternatives>
                </fo:page-sequence-master>

                <fo:simple-page-master master-name="chapter-rest-odd"
page-height="8.5in">
                        <fo:region-body margin="1.0in"/>
                        <fo:region-before extent="50pt"
region-name="rest-region-before-odd"/>
                </fo:simple-page-master>

                <fo:simple-page-master master-name="chapter-rest-even"
page-height="8.5in">
                        <fo:region-body margin-top="779pt"/>
                        <fo:region-before extent="8.5in"
region-name="rest-region-before-even"/>
                </fo:simple-page-master>

        </fo:layout-master-set>

Again though, the composition engine would throw the chapter-rest-even every
other page and of course compose that page. Also, it would matter whether
you wish page numbers on the pages and how. I would expect you would want
them numbered:

1,-,2,-,3,- ... meaning the instructions are not numbered. If so, the
technique of inserting the XEPOUT pages would work, the above method would
number pages 1,2,3,4,5,... meaning the instructions are numbered. That said,
you could also enhance the code below to stamp in page numbers after the
re-sequencing.

Kevin Brown
RenderX

-----Original Message-----
From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Tuesday, May 15, 2012 2:22 PM
To: 'RenderX Community Support List'
Subject: [xep-support] Re: Display of static Page after Dynamic page

Raghava:

I reread you request ... is it that you are saying every other page in the
dynamic section needs to be a static instruction page?

This is likely better accomplished through custom code that trying through
modifying VisualXSLs processing chain. VisualXSL was not designed for every
other page masters and you would need to override the master templates that
do page masters in a CustomTranslate project.

The something else I would recommend (especially if the static page is just
one static page) ...

Use a little code to accomplish what you want (and make the whole process
likely a bit faster in the meantime).

1) Run the document as is to XEP Intermediate Format
2) Open that file in an XML editor
3) You will see <document><page>...</page><page>....</page> ...
4) Put together a simple XSL (if the documents are not too long) or a simple
XML reader/writer that converts that intermediate output according to your
rules, copying the last <page> between the <page> elements you need. We
could easily write that if you desire. If you wish PDF page numbering to be
accurate, modify the pagenum attributes of the page elements.

On implementation you would run to the XEPOUT format, modify the XEPOUT
stream and feed that back to RenderX.

This is effectively splitting the "engine" into two parts. We use such
things all the time for accomplishing special tasks. See the n-up examples
(http://www.renderx.com/cooltools.html) for such techniques. And if you
implemented in FO in such a way that the static instruction page was
composed each time it is needed, the above technique would speed up the
formatting time (considerably for larger documents).

If you need help, contact me for our Professional Services team and we can
assist.

Kevin Brown
RenderX

-----Original Message-----
From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Narapareddy, Raghava
Sent: Thursday, April 19, 2012 4:45 PM
To: xep-support@renderx.com; xep-support@renderx.com
Subject: [xep-support] Display of static Page after Dynamic page

Hi,

I am facing an issue with display of instruction page after each dynamic
page.

I have standard 4 page document (All 4 pages are different),

But this document can grow if the content in page3(Dynamic data) is more, it
can grow up to ten pages.

My VXL design :

Page 1 : Static page
Page 2 : Static page
Page 3 : Dynamic Page
Page 4 : Instruction page ( Static Page)

XML value that populates contains 4800 characters, my document prints all
the 4 pages in order ( Static, Static, Dynamic and Instruction page)

If XML value contains 30000 characters( Nearly 6 Page content). Every time I
have to insert instruction page after for dynamic page.

I should create the document in this order.
Page 1 : Static page
Page 2 : Static page
Page 3 : Dynamic Page
Page 4 : Instruction page ( Static Page) Page 5 : Dynamic Page Page 6 :
Instruction page ( Static Page) Page 7 : Dynamic Page Page 8 : Instruction
page ( Static Page) Page 9 : Dynamic Page Page 10 : Instruction page (
Static Page) Page 11 : Dynamic Page Page 12 : Instruction page ( Static
Page) Page 13 : Dynamic Page Page 14 : Instruction page ( Static Page)

Currently I am able to generate document like this.

Page 1 : Static page
Page 2 : Static page
Page 3 : Dynamic Page
Page 4 : Dynamic Page
Page 5 : Dynamic Page
Page 6 : Dynamic Page
Page 7 : Dynamic Page
Page 8 : Dynamic Page
Page 9 : Instruction page ( Static Page)

Your help in this regard will be highly appreciated.

Thanks
RAGHAVA NARAPAREDDY
CMIPS II, Case Management
US HealthCare, HP Enterprise Services
8000 Foothills Blvd, Roseville, CA 95747.
Mailstop: 5662
W: 916-785-0990
C: 916-833-8645
Email raghava.narapareddy@hp.com

This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain privileged and/or confidential
information. If you are not the intended recipient of this e-mail, any
dissemination, distribution or copying of this e-mail, and any attachments
thereto, is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender by e-mail or telephone and permanently
delete all copies of this e-mail and any attachments.

!DSPAM:87,4f90a48363731631220315!

_______________________________________________
(*) To unsubscribe, please visit
http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service
http://w ww.renderx.com/terms-of-service.html

_______________________________________________
(*) To unsubscribe, please visit
http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service
http://w ww.renderx.com/terms-of-service.html

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Tue May 15 15:28:33 2012

This archive was generated by hypermail 2.1.8 : Tue May 15 2012 - 15:28:34 PDT