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 xavier gibouin <xa...@axonie.com> on 2002/10/17 11:41:32 UTC
Re: Re: Page number
Hi
i would like to import/include several xsl-fop file in a general one to generate a global pdf (
this is the code of the general.xsl file
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:svg="http://www.w3.org/Graphics/SVG/SVG-19990812.dtd">
<xsl:output method="html" media-type="text/html; charset=ISO-8859-1"/>
<xsl:include href="./CPAXXCAN1_2.xsl"/>
<xsl:include href="./CVAXXCAN1_2.xsl"/>
</xsl:stylesheet>
this code generate only the last pdf
How to do ,
How to write CPAXXCAN1_2.xsl and CVAXXCAN1_2.xsl
thanks a lot
Xavier Gibouin
Axonie
Espace Mercoeur
8, rue Mercoeur
44000 Nantes
02.40.48.53.23
xavier.gibouin@axonie.com
Re: Page number
Posted by Oleg Tkachenko <ol...@multiconn.com>.
xavier gibouin wrote:
> 2 :i've got xsl files : edition1.xsl, edition2.xsl, edition3.xsl, ...
> for different editions
>
> 3: i want to build a xsl file : genral.xsl wich must :
> - include/import edition1.xsl,edition2.xsl,... depending
> on <maquette> tag of my xml file
> - generate one pdf file inculding edition1, edition2,..
>
> hos to build this general xsl file.
That depends on what is in those xsl's. Including/importing stylesheets
are not magic stuff, but only way to break stylesheets into useful
reusable modules - collections of templates. You just have to produce
valid xsl-fo document.
--
Oleg Tkachenko
eXperanto team
Multiconn International, Israel
Re: Page number
Posted by xavier gibouin <xa...@axonie.com>.
So :
1 : i'v got a general xml file which contains all data and editions i must generate :
general.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<variables>
<maquettes>
<maquette>edition1.xsl</maquette>
<maquette>edition2.xsl</maquette>
<maquette>edition3.xsl</maquette>
....
</maquettes>
<var>
....
<var>
</variables>
2 :i've got xsl files : edition1.xsl, edition2.xsl, edition3.xsl, ... for different editions
3: i want to build a xsl file : genral.xsl wich must :
- include/import edition1.xsl,edition2.xsl,... depending on <maquette> tag of my xml file
- generate one pdf file inculding edition1, edition2,..
hos to build this general xsl file.
sorry for my poor english
thanks
Xavier Gibouin
Axonie
Espace Mercoeur
8, rue Mercoeur
44000 Nantes
02.40.48.53.23
xavier.gibouin@axonie.com
----- Original Message -----
From: Oleg Tkachenko
To: fop-user@xml.apache.org
Sent: Thursday, October 17, 2002 3:43 PM
Subject: Re: Page number
xavier gibouin wrote:
> I try with and without <xsl:template> but it doesn't work :
>
> How must i write the head of CPAXXCAN1_2.xsl and CVAXXCAN1_2.xsl
Well, short answer is: your xsl stylesheet have to produce valid xsl-fo
document. What are you trying to achieve and what are these CPAXXCAN1_2.xsl
and CVAXXCAN1_2.xsl?
--
Oleg Tkachenko
eXperanto team
Multiconn International, Israel
Re: Page number
Posted by Oleg Tkachenko <ol...@multiconn.com>.
xavier gibouin wrote:
> I try with and without <xsl:template> but it doesn't work :
>
> How must i write the head of CPAXXCAN1_2.xsl and CVAXXCAN1_2.xsl
Well, short answer is: your xsl stylesheet have to produce valid xsl-fo
document. What are you trying to achieve and what are these CPAXXCAN1_2.xsl
and CVAXXCAN1_2.xsl?
--
Oleg Tkachenko
eXperanto team
Multiconn International, Israel
Re: Page number
Posted by xavier gibouin <xa...@axonie.com>.
I try with and without <xsl:template> but it doesn't work :
How must i write the head of CPAXXCAN1_2.xsl and CVAXXCAN1_2.xsl
thanks
Xavier Gibouin
Axonie
Espace Mercoeur
8, rue Mercoeur
44000 Nantes
02.40.48.53.23
xavier.gibouin@axonie.com
----- Original Message -----
From: Oleg Tkachenko
To: fop-user@xml.apache.org
Sent: Thursday, October 17, 2002 12:52 PM
Subject: Re: Page number
xavier gibouin wrote:
> i would like to import/include several xsl-fop file in a general one to
> generate a global pdf (
>
> this is the code of the general.xsl file
> <xsl:include href="./CPAXXCAN1_2.xsl"/>
> <xsl:include href="./CVAXXCAN1_2.xsl"/>
> </xsl:stylesheet>
Probably you have xsl:template match="/" in both stylesheets and despite
that's xslt error, xslt processor may recover by using last one.
--
Oleg Tkachenko
eXperanto team
Multiconn International, Israel
Re: Page number
Posted by Oleg Tkachenko <ol...@multiconn.com>.
xavier gibouin wrote:
> i would like to import/include several xsl-fop file in a general one to
> generate a global pdf (
>
> this is the code of the general.xsl file
> <xsl:include href="./CPAXXCAN1_2.xsl"/>
> <xsl:include href="./CVAXXCAN1_2.xsl"/>
> </xsl:stylesheet>
Probably you have xsl:template match="/" in both stylesheets and despite
that's xslt error, xslt processor may recover by using last one.
--
Oleg Tkachenko
eXperanto team
Multiconn International, Israel