- From: harald <harald.mueller@emprise.de>
- Date: Tue, 23 Jul 2002 16:35:36 +0200
- To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
i suggest this:
(if i got u right)
define simple-page-masters for each company:
<fo:simple-page-master master-name="abc_co" page-height="29.7cm"
page-width="21cm" margin-top="1cm" margin-bottom="1cm" margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body margin-top="2.5cm"/>
<fo:region-before extent="1cm"/>
<fo:region-after extent="1cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="xyz_co" page-height="29.7cm"
page-width="21cm" margin-top="1cm" margin-bottom="1cm" margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body margin-top="3.5cm"/>
<fo:region-before extent="2cm"/>
<fo:region-after extent="1cm"/>
</fo:simple-page-master>
then call the desired page and put xsl-statement for ur image:
<fo:page-sequence master-reference="abc_co">
<xsl:value-of select="main/company1[@image_id='1']/image"/>
<fo:static-content flow-name="xsl-region-after">
<fo:block font-family="Helvetica" font-size="9pt" color="#CCCCCC"
text-align="center">
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Helvetica" font-size="16pt" text-align="center">
content of abc_co
</fo:block>
</fo:flow>
<fo:page-sequence master-reference="xyz_co">
<xsl:value-of select="main/company2[@image_id='2']/image"/>
<fo:static-content flow-name="xsl-region-after">
<fo:block font-family="Helvetica" font-size="9pt" color="#CCCCCC"
text-align="center">
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Helvetica" font-size="16pt" text-align="center">
content of abc_co
</fo:block>
</fo:flow>
good luck!
Jan Kirmse schrieb:
> thanks for the help.
>
> my problem is the following:
>
> i have one xml file which contains several company nodes
>
> <company1>
> ...
> ...
> </company1>
> <company2>
> ...
> ...
> </company2>
> <company3>
> ...
> ...
> </company3>
> etc.
>
> each <company> contains a logo and other TAGs
>
> in my xsl file i like to have these static-contents dependent on the company
> or the logo
> which are defined in the xml file.
> if its possible to solve this problem with several page-sequences i like to
> test it.
>
> my pdf file should have the following design.
>
> page1 (company1)
> page2 (company1)
> page3 (company1)
> page4 (company2)
> page4 (company2)
> page5 (company2)
>
> and so on, for several companies, but only one pdf file.
>
> if you have any other idea which helps,
> thanks
>
> jan
--
* * * * * * * * * * * * * * * * * * * * * * * * * *
Emprise Consulting Düsseldorf GmbH
Büro Berlin
10405 Berlin
Saarbrückerstr. 36
030_23 88 66 58
0174_980 33 83
harald.mueller@emprise.de
Received on Tuesday, 23 July 2002 10:41:55 UTC