forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject RE: How do I add a custom fo.xsl
Date Thu, 25 Jan 2007 21:26:57 GMT
On Thu, 2007-01-25 at 16:04 +0000, Steve Odlind wrote:
> 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"

Who is throwing this error? This is a quite confusing error.

I would have expected that you get the aggregate from the two parts. The
result should look like:
<site>
 cocoon:/skinconf.xml/
 {project:content.xdocs}{1}aNewFile.xml
</site>

> 
> Any ideas what to try next?

I need to see the stack.

salu2

> 
> Thanks,
> 
> Steve
> 
> -----Original Message-----
> From: Thorsten Scherler [mailto:thorsten@apache.org] 
> 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)



Mime
View raw message