You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Rolando Lopes Isidoro <rl...@uninova.pt> on 2004/11/23 19:59:15 UTC

Lenya convert to PDF

Hello, I'm a newbie at Apache Lenya, I was asked to develop a web portal
based in this CMS and I've been having several issues during this process,
some of them I managed to solve by searching the mailing list or under
Cocoon available documentation, but I can't seem to get a conversion to PDF
to work :(

 

I've followed the steps described at
http://cocoon.apache.org/2.1/howto/howto-html-pdf-publishing.html, since I
just wanted to convert the contents do PDF, I saved doc2pdf.xsl to the xslt
sub-dir and inserted the following lines in my publication-sitemap.xmap
file:

 

<map:match pattern="*.pdf">

                        <map:generate src="{1}.xml"/>

                        <map:transform src="xslt/doc2pdf.xsl"/>

                        <map:serialize type="fo2pdf"/>

            </map:match>

 

After this I performed some testing, by typing the some url, for example,
http://localhost:8080/lenya/gris/live/team.pdf, which returned this error:

 

The requested document '/team.pdf' with document-id '/team' does not exist.

 

I then altered the <map:generate src /> element to try to match the location
of the source xml but had no luck, I'm out of ideas to solve this problem
that I thought would be a walk in the park. I'd appreciate if someone could
give me some insight on a solution.

 

Thanks in advance,

Rolando Isidoro