Hi Thorsten,

I did the following:

<map:match pattern="**aNewFile.fo">
 ...
  <map:aggregate element="site">
   <map:part src="cocoon:/skinconf.xml"/>
   <map:part src="{project:content.xdocs}{1}aNewFile.xml"/>
  </map:aggregate>
  <map:serilaize type="xml"/>
 ....

I then got the following error message:

"BROKEN: Root element must be root, not site"

Any ideas what to try next?

Thanks,

Steve

-----Original Message-----
From: Thorsten Scherler [mailto:[EMAIL PROTECTED] 
Sent: 24 January 2007 19:40
To: user@forrest.apache.org
Subject: RE: How do I add a custom fo.xsl

On Fri, 2007-01-19 at 14:13 +0000, Steve Odlind wrote:
> Hi Thorsten,
> 
> >>Please try exchanging cocoon:/{1}{2}.xml with your location and I
> >>suspect it will work fine.
> 
> I wasn't sure what should replace "cocoon:/{1}{2}.xml". I tried the
> following:
> 
> Copied the block in main\webapp\sitemap.xmap you referred to in your
> previous mail and changed it to the following.
> 
> <!-- generate .fo from .xml for the special case  -->
> <map:match pattern="**aNewFile.fo">
> ...
>  <map:aggregate element="site">
>   <map:part src="cocoon:/skinconf.xml"/>
>   <map:part src="{project:content.xdocs}{1}aNewFile.xml"/>
>  </map:aggregate>
> ....
> 
> This did not work. Executing the "forrest" command still gives the
same
> error message ("BROKEN: org.apache.fop.apps.FOPException: No flow in
> page-sequence "). Navigating to http://localhost:8888/aNewFile.fo
fails
> with the error message "null".

Ok, let us see whether the skinconf.xml is in the aggregate or not.
above match and after the map:aggregate do map:serialize and send the
result.

> 
> Hopefully, I have just made a simple mistake.
> 

Let's find out. 

> Thanks again,

Sorry for coming back so late on this.

> 
> Steve
> 

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)