forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Lofi" <>
Subject PATCH (document-v11 file not displaying in webapp mode)
Date Sun, 31 Aug 2003 20:10:41 GMT

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"
359	 <! 		<map:generate
	 !>             <map:generate src="content/xdocs/{1}/{2}.xml" />
367	 <! 			<map:parameter name="path"
	 !>                	<map:parameter name="path"
value="{1}/{2}.xml" />
369	 <! 	</map:act>
411	 <! 	<map:act type="resource-exists">
412	 <! 		<map:parameter name="url"
413	 <! 		<map:generate src="content/xdocs/{../1}.xml"/>
	 !>             <map:generate src="content/xdocs/{1}.xml" />
421	 <! 			<map:parameter name="path"
	 !>             <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...).


View raw message