cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Hartle <>
Subject Re: How to configure sitemap.xmap
Date Thu, 24 Jan 2002 19:11:19 GMT
MOODAD (Shadi LB Soft) wrote:

> Hi
> I'm trying to generate pdf reports using the cocoon servlet.
> I have configured a pipeline like that to handle the xsp files
> / <map:pipeline>/
> / <map:match pattern="**.xsp">/
> / <map:generate type="file"/>/
> / <map:transform/>/
> / <map:serialize type="fo2pdf"/>/
> / </map:match>/
> / </map:pipeline>/

Uh, you got some parts wrong; both map:generate and map:transform lack a 
"src" attribute which tells generators what content to start generating 
from and transformers the rules how to transform what comes down the 
pipeline. The Cocoon welcome page links to a fo2pdf example that may 
give some help. For starters, try something like this instead:

<map:match pattern="**.xsp">
<map:generate type="serverpages" src="{1}"/>
<map:transform src="your-self-written-xsp2fo.xsl"/>
<map:serialize type="fo2pdf"/>

> So I got the following error with stack trace:
> org.apache.cocoon.ProcessingException: Could not setup pipeline.: 
> org.xml.sax.SAXException: Invalid System ID
In short, "Invalid System ID" means something like "File not found"; in 
your pipeline definition, you did not even specify the "src" attribute 
(the "System ID") ;)

Best regards,

Michael Hartle,
Hartle & Klug GbR

To unsubscribe, e-mail:
For additional commands, email:

View raw message