cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <roman.koz...@opencascade.com>
Subject Re: fop2pdf through chained transformers
Date Wed, 25 Aug 2004 14:35:44 GMT
You have to create fo (formatted objects) xml input instead of html for
fo2pdf serializer.

Roman

Matt Rich wrote:

> Hello!
>
> I'm trying to export in pdf the result of an SQL request
> that has been passed through a chain of transformers like this:
>
> <map:match pattern="result2">
>         <map:generate src="requetes.xml" />
>         <map:transform src="result2.xsl">
>             <map:parameter name="use-request-parameters" value="true"/>
>         </map:transform>
>            -<map:transform type="sql">
>         <map:parameter name="use-connection" value="syb"/>
>         <map:parameter name="show-nr-of-rows" value="true"/>
>         <map:parameter name="clob-encoding" value="UTF-8"/>
>            </map:transform>
>          <map:transform src="page2html2.xsl"/>
>         <map:serialize />
>        </map:match>
>
> Calling "result2pdf" from the resulting hml page should give a pdf
> version of this page:
> the "result2pdf" pipeline is the same, except :
> <map:serialize type="fo2pdf">
>
> I've managed to pass the variables. but when trying to get the pdf ,
> an error message appears :
> "Failed to execute pipeline : root element must be root, not center"
>
> ( The two first lines of my source file are :
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
> <center xmlns:sql="http://apache.org/cocoon/SQL/2.0">
> )
>
> Thank you so much for any clue!
>
> Cheers,
>
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message