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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
