You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Juan Jose Pablos <ch...@che-che.com> on 2003/09/04 01:10:14 UTC
Re: PATCH (document-v11 file not displaying in webapp mode)
Christoph,
I think that you download an old version of forrest. We in the process
of releasing a new version very soon.
Can you hold this one until we get that out?
Cheers,
Cheche
Christoph Lofi wrote:
> Hi.
>
> I don't know if I am too stupid or this is really a bug, but when I
> download forrest latest source version (or binary, doesn't mind), create
> a new forrest folder ("forrest seed") and deploy it as webapp (either by
> "forrest run" or in tomcat with "forrest webapp"), then all pages
> generated out of document-v11 xml files won't display (only white, empty
> screen). All other format work fine (ihtml, ehtml, faq, ...)
> Using offline generation, there is no problem.
>
> After looking at the sitemap.xmap generated by forrest, I found and
> corrected the bug (if it was one...).
>
> Problem is, I think, that in the pipline-parts matching "body-**/*.xml"
> and "body-**.xml", the part where document xmls are used as source does
> not work correctly.
> So I surrounded these code fragments with a resouce-exist action and
> replaced the {1} variables with {../1} (as it is done fore the other
> file formats like ihtml, ehtml, ...)
> After that, everything seems to work fine.
>
> (sorry, I don't have somthing which creates a diff -u output, so I hope
> this will do...)
> Comparing: sitemap.xmap
> <! new version
> !> old version
>
> 357 <! <map:act type="resource-exists">
> 358 <! <map:parameter name="url"
> value="content/xdocs/{1}/{2}.xml"/>
> 359 <! <map:generate
> src="content/xdocs/{..1}/{..2}.xml"/>
> !> <map:generate src="content/xdocs/{1}/{2}.xml" />
> 367 <! <map:parameter name="path"
> value="{..1}/{..2}.xml"/>
> !> <map:parameter name="path"
> value="{1}/{2}.xml" />
> 369 <! </map:act>
> 411 <! <map:act type="resource-exists">
> 412 <! <map:parameter name="url"
> value="content/xdocs/{1}.xml"/>
> 413 <! <map:generate src="content/xdocs/{../1}.xml"/>
> !> <map:generate src="content/xdocs/{1}.xml" />
> 421 <! <map:parameter name="path"
> value="{../1}.xml"/>
> !> <map:parameter name="path" value="{1}.xml" />
> 423 <! </map:act>
>
>
> So, I hope this will help someone out there (well, I am quite happy with
> my bugfix...).
>
> Greetings,
> Christoph