W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2008

Re: page-position="last" doesn't work for 1 page document

From: Meet Ahmed <meetahmed@gmail.com>
Date: Mon, 7 Jan 2008 21:13:37 +0500
Message-ID: <6fe0a4cf0801070813x443a1d87o74195a782897e800@mail.gmail.com>
To: irene23 <basura2400@yahoo.es>
Cc: xsl-editors@w3.org
Yes you are right irene23
I admit
Regards
Ahmed

On Jan 2, 2008 2:26 AM, irene23 <basura2400@yahoo.es> wrote:

>
> Hello,
>
> I have two page-masters defined, with one having a different footer than
> the
> other.
>
> When this renders to a 2+ page document, the last page gets the last
> footer
> and the other pages get the other footer.
>
> When it renders to a 1 page document, I get the "any" page footer, even
> though the the page is the last page....
>
> I've posted on nabble.com, and gotten replies that it is possibly a bug.
>
>
> <fo:layout-master-set>
>  <fo:simple-page-master master-name="default-page"
>                         page-height="11in"
>                         page-width="8.50in"
>                         margin-top="0.25in"
>                         margin-left="0.25in"
>                         margin-right="0.25in"
>                         margin-bottom="0.25in">
> <!-- space needed for header & footer tables -->
>  <fo:region-body
>   region-name="body"
>   margin-top="0in"
>                         margin-bottom="1.50in"/>
>  <fo:region-before region-name="header" extent="10.0in"/> <!-- space
> needed
> for header table -->
>  <fo:region-after region-name="footer" extent="1.50in"/> <!-- space needed
> for footer table -->
>  <fo:region-start  extent="0.00in"/>
>  <fo:region-end    extent="0.00in"/>
>  </fo:simple-page-master>
>
>
>  <fo:simple-page-master master-name="last-page"
>   page-height="11in"
>   page-width="8.50in"
>   margin-top="0.25in"
>   margin-left="0.25in"
>   margin-right="0.25in"
>   margin-bottom="0.25in">
>   <!-- space needed for header & footer tables -->
>   <fo:region-body
>    region-name="body"
>    margin-top="0in"
>    margin-bottom="1.50in"/>
>   <fo:region-before region-name="header" extent="10.0in"/> <!-- space
> needed
> for header table -->
>   <fo:region-after  region-name="last-footer" extent="1.50in"/> <!-- space
> needed for footer table -->
>   <fo:region-start  extent="0.00in"/>
>   <fo:region-end    extent="0.00in"/>
>  </fo:simple-page-master>
>
>
>  <fo:page-sequence-master master-name="all">
>   <fo:repeatable-page-master-alternatives>
>
>    <fo:conditional-page-master-reference
>     page-position="last" master-reference="last-page"/>
>
>    <fo:conditional-page-master-reference
>     page-position="any" master-reference="default-page" />
>
>   </fo:repeatable-page-master-alternatives>
>  </fo:page-sequence-master>
> </fo:layout-master-set>
>
> Can I get the same in other way? (With a footnote, or a block placed at
> the
> end of the body...)
>
> Could you help me?
>
> Thank you very much.
>
> --
>
http://www.ip2lookup.com

http://a.com.pk
>
Received on Monday, 7 January 2008 19:48:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:59 GMT