You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sven Waibel <sv...@imbus.de> on 2004/08/25 13:05:16 UTC
Different Pages with different content
Hi,
i've got a first page, several pages and a last page.
First page should have certain data, several pages other data and the last page completely other data.
Where/How can i insert a statement like <xsl:apply-templates select="last"/> in my <fo:page-sequence master-reference ...>
It's hard to explain.
Short: I need for every page another content.
Thanks
Sven
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Different Pages with different content
Posted by Sven Waibel <sv...@imbus.de>.
Thanks a lot!
That's it.
Sven
Chris Bowditch wrote:
> Sven Waibel wrote:
>
>> Hi,
>>
>> i've got a first page, several pages and a last page.
>>
>> First page should have certain data, several pages other data and the
>> last page completely other data.
>>
>> Where/How can i insert a statement like <xsl:apply-templates
>> select="last"/> in my <fo:page-sequence master-reference ...>
>
>
> The way to achieve this in XSL-FO is to define a page-sequence-master, e.g.
>
> <fo:page-sequence-master master-name="all">
> <fo:repeatable-page-master-alternatives>
> <fo:conditional-page-master-reference master-reference="firstmaster"
> page-position="first">
> <fo:conditional-page-master-reference master-reference="middlemaster"
> page-position="rest">
> <fo:conditional-page-master-reference master-reference="lastmaster"
> page-position="last">
> </fo:repeatable-page-master-alternatives>
> </fo:page-sequence-master>
>
> then reference the page-sequence-master from the page-sequence, e.g.
>
> <fo:page-sequence master-reference="all">
> <!-- content -->
> </fo:page-sequence>
>
> <snip/>
>
> The only problem is that in FOP, page-position="last" has not been
> implemented! Depending on what differences you need, you can work around
> this to a limited extent using fo:marker.
>
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
>
--
**************************************************************************
* Sven Waibel imbus AG *
* Tel: 09131/7518-36 Kleinseebacher Str.9 *
* Fax: 09131/7518-50 91096 Möhrendorf *
* EMail: Sven.Waibel@imbus.de WWW: http://www.imbus.de *
**************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Different Pages with different content
Posted by Chris Bowditch <bo...@hotmail.com>.
Sven Waibel wrote:
> Hi,
>
> i've got a first page, several pages and a last page.
>
> First page should have certain data, several pages other data and the last page completely other data.
>
> Where/How can i insert a statement like <xsl:apply-templates select="last"/> in my <fo:page-sequence master-reference ...>
The way to achieve this in XSL-FO is to define a page-sequence-master, e.g.
<fo:page-sequence-master master-name="all">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="firstmaster"
page-position="first">
<fo:conditional-page-master-reference master-reference="middlemaster"
page-position="rest">
<fo:conditional-page-master-reference master-reference="lastmaster"
page-position="last">
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
then reference the page-sequence-master from the page-sequence, e.g.
<fo:page-sequence master-reference="all">
<!-- content -->
</fo:page-sequence>
<snip/>
The only problem is that in FOP, page-position="last" has not been
implemented! Depending on what differences you need, you can work around this
to a limited extent using fo:marker.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org