[xep-support] XEP bug concerning initial-page-number

David Tolpin dvd at renderx.com
Mon Jun 17 06:34:47 PDT 2002


> I think I may have found a bug in XEP. I want to create a document that 
> has a cover page (without a page number), followed by numbered pages 
> (starting with 1) for the main text. Therefore I use two page-sequences, 
> the second one with initial-page-number="1". However this results in XEP 
> creating an empty page between the cover and the main text. FOP doesn't
> do this. Here's an example code:

Mattias,

while XEP does contain bugs just like any other software program, this one
is a bug of FOP. Specify force-page-count="no-force" on the first page-sequence.
force-page-count="auto" (the default value) inserts a blank page to maintain
odd/even pages' balance.

David

> 
> <?xml version="1.0" encoding="utf-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>   <fo:layout-master-set>
>     <fo:simple-page-master master-name="main" page-height="29.7cm" 
>       page-width="21cm" margin-top="2cm" margin-right="3cm" 
>       margin-bottom="3cm" margin-left="3cm">
>       <fo:region-body margin-top="1cm" margin-bottom="1.5cm"/>
>       <fo:region-after extent="1cm"/>
>     </fo:simple-page-master>
>   </fo:layout-master-set>
> 
>   <fo:page-sequence master-reference="main">
>     <fo:flow flow-name="xsl-region-body">
>       <fo:block>Cover</fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> 
>   <fo:page-sequence master-reference="main" initial-page-number="1">
>     <fo:static-content flow-name="xsl-region-after">
>       <fo:block text-align="center">
>         <fo:page-number/>
>       </fo:block>
>     </fo:static-content>
>     <fo:flow flow-name="xsl-region-body">
>       <fo:block>First page</fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
> 
> The resulting PDF has two pages when using FOP, but three pages
> when using XEP. Is this an error in XEP? If yes, will it be fixed?
> 
> Thanks
> Matthias
> 
> -------------------
> By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
> 

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list