Ecrion Software Inc. Homepage
Forum Home Forum Home > Ecrion Digital Assembly Line (DAL) > Generic Support
  New Posts New Posts RSS Feed: Page Numbering
  FAQ FAQ  Forum Search   Register Register  Login Login

Page Numbering

 Post Reply Post Reply Page  12>
Author
Message Reverse Sort Order / View First Unread Post
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Topic: Page Numbering
    Posted: 19 Jun 2012 at 3:38pm
Files sent. Thanks.
Back to Top
justinw View Drop Down
Admin Group
Admin Group
Avatar

Joined: 08 Dec 2011
Posts: 157
Post Options Post Options   Quote justinw Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 2012 at 1:20pm
Hi mattucg,

Let's have you send your documents to support@ecrion.com for a closer look.  Please detail specifically your needs in your email and provide all relevant input documents (XML, XFD, XFC, images, DAL input docs, FO overlays, etc...).  

Ecrion Technical Support
Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 2012 at 12:31pm
I'm already getting B11-B20. There is no problem having one continuous numbering scheme. What I need is for the numbering to reset when applying overlays to certain documents.

Setting  initial-page-number="1" on the page-sequence-master element or the page-sequence element of an overlay file does not seem to work. The numbering continues where the previous section left off.
Back to Top
justinw View Drop Down
Admin Group
Admin Group
Avatar

Joined: 08 Dec 2011
Posts: 157
Post Options Post Options   Quote justinw Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 2012 at 10:47am
Hi mattucg,

This can be done by using the attribute "initial-page-number" for the fo:page-sequence element. Here are the steps for your B11-B20 needs.  

1.  Set initial-page-number="11"

2.  A the end of your document add an id on an identifying block (could be without content).  Here I've added id="endofdoc".

<fo:block id="endofdoc" break-before="page">This is sample text...</fo:block>

3.  Add the attribute ref-id="YourIdentifierHere" to fo:page-number-citation as below:

<fo:block text-align="right">B<fo:page-number format="1"/> of&#x00A0;B<fo:page-number-citation format="1" ref-id="endofdoc"/></fo:block> 

4.  Your output should show the B11-B... as you need.  

Here is my entire fo:page-sequence code:

<fo:page-sequence master-reference="Letter Page" initial-page-number="11">
<fo:static-content flow-name="xsl-region-after">
<fo:block>&#x00A0;</fo:block>
</fo:static-content><fo:static-content flow-name="xsl-region-before">
<fo:block text-align="right">B<fo:page-number format="1"/> of&#x00A0;B<fo:page-number-citation format="1" ref-id="endofdoc"/></fo:block>
</fo:static-content><fo:static-content flow-name="xsl-region-end">
<fo:block>&#x00A0;</fo:block>
</fo:static-content><fo:static-content flow-name="xsl-region-start">
<fo:block>&#x00A0;</fo:block>
</fo:static-content><fo:flow flow-name="xsl-region-body">
<fo:block>this is sample text. &#x00A0;</fo:block>
<fo:block>&#x00A0;</fo:block>
<fo:block id="endofdoc" break-before="page">This is sample text...</fo:block>
</fo:flow>
</fo:page-sequence>


Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 2012 at 10:17am
I don't think this method will work.

I have two separate overlays, the first ten-page document uses
Page A<fo:page-number format="1"/>

the second ten-page document
Page B<fo:page-number format="2"/>

The sections using the first overlay are numbered A1-A10
The sections using the second overlay are numbered B11-B20

What I am looking to have is the first section numbered A1-A10 and the second section numbered B1-B10. Is that possible?
Back to Top
justinw View Drop Down
Admin Group
Admin Group
Avatar

Joined: 08 Dec 2011
Posts: 157
Post Options Post Options   Quote justinw Quote  Post ReplyReply Direct Link To This Post Posted: 18 Jun 2012 at 1:28pm
Hi Mattucg,

You can use format="" as an attribute on fo:page-number. 

For example:
<fo:page-number format="A"/>

For your needs, an option would be something like this in, let's say, your footer:

<fo:block>
<fo:inline>
Page A<fo:page-number format="1"/>
</fo:inline>
</fo:block>

This would produce Page A1 (or A2, A3, etc...).

Was this helpful?
Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 18 Jun 2012 at 12:55pm
How does the overlay define which schema to use?

My markup just has a plain <fo:page-number/> element in the footer. Is there an attribute on that element that marks it at part of one scheme or another?
Back to Top
justinw View Drop Down
Admin Group
Admin Group
Avatar

Joined: 08 Dec 2011
Posts: 157
Post Options Post Options   Quote justinw Quote  Post ReplyReply Direct Link To This Post Posted: 18 Jun 2012 at 12:46pm
Hello mattucg,

You can use two separate FO's with different numbering schemes as overlays in your DAL job.  To control the application of such overlays, you may use the xfj:match (child of xfj:apply-rules) element to control the application of your overlays dependent upon your needs.  

You can read more about this at the following link:

A sample would look like the following:

<xfj:apply-rules>

       <xfj:match rule="all"/>

       <xfj:match rule="exclude(document1)"/>

       <xfj:match rule="exclude(first)"/>

</xfj:apply-rules>

Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 15 Jun 2012 at 10:25am
This seems to be an example contained within a single XFD template. Would it be possible when combining documents with a DAL file?

For example: If I have four 10-page PDF files which will be combined into a single 40-page document, is it possible to have the first two documents share one paging scheme (e.g A1 - A20) and last two documents share a second paging scheme (e.g. B1-B20)?


Edited by mattucg - 15 Jun 2012 at 10:27am
Back to Top
radup View Drop Down
Admin Group
Admin Group
Avatar
Adminstrator

Joined: 19 May 2008
Posts: 83
Post Options Post Options   Quote radup Quote  Post ReplyReply Direct Link To This Post Posted: 02 Sep 2011 at 8:52am
Yes, you can have two numbering schemes but you cannot count backwards. 
Having two schemes can be done using to page sequences, one for introduction sections and the other one for content.
It looks something like this:
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:svg="http://www.w3.org/2000/svg">
<fo:layout-master-set>
<fo:simple-page-master master-name="IntroductionPage" page-width="8.500in" page-height="11.000in">
<fo:region-body region-name="xsl-region-body" margin="0.700in"/>
<fo:region-before region-name="xsl-region-before" display-align="after" extent="0.700in"/>
<fo:region-after region-name="xsl-region-after" display-align="before" extent="0.700in"/>
<fo:region-start region-name="xsl-region-start" extent="0.700in"/>
<fo:region-end region-name="xsl-region-end" extent="0.700in"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="ContentPage" page-width="8.500in" page-height="11.000in">
<fo:region-body region-name="xsl-region-body" margin="0.700in"/>
<fo:region-before region-name="xsl-region-before" display-align="after" extent="0.700in"/>
<fo:region-after region-name="xsl-region-after" display-align="before" extent="0.700in"/>
<fo:region-start region-name="xsl-region-start" extent="0.700in"/>
<fo:region-end region-name="xsl-region-end" extent="0.700in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="IntroductionPage">
<fo:static-content flow-name="xsl-region-before" font-size="12pt" font-family="Times">
<fo:block text-align="right">Page <fo:page-number format="I"/> of <fo:page-number-citation format="I" ref-id="xf#theEnd"/></fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="Times" font-size="12pt">
<fo:block text-align="center">Introduction</fo:block>
<fo:block break-before="page"> </fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="ContentPage">
<fo:static-content flow-name="xsl-region-before" font-size="12pt" font-family="Times">
<fo:block text-align="right">Page <fo:page-number format="1"/> of <fo:page-number-citation format="1" ref-id="xf#theEnd"/></fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="Times" font-size="12pt">
<fo:block text-align="center">Content</fo:block>
<fo:block break-before="page"> </fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
I'm happy when my mind is free and my senses are occupied.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.094 seconds.