forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Champlon <>
Subject Re: Embedding existing HTML pages from a location outside src/documentation/content/xdocs
Date Thu, 19 Feb 2009 13:06:38 GMT
Just in case someone faces the same issue, here is how I ended up 
working around it.

I used the following pipeline :

     <map:match pattern="embedded/**.html">
       <map:generate type="html" src="{properties:content}{0}"/>
       <map:serialize type="xml"/>

Along with the following generator (a bit adapted from :

    <map:generators default="file">
      <map:generator name="html" 

And this solves the error I had previously which was :
X [0]                                     embedded/embedded_html.html   

(The filename, directory name, or volume label syntax is incorrect)

Afterwards I played a bit with the forrest sitemap configuration, and 
changed main/webapp/resources/schema/entity/symbols-core-v10.ent like this :
@@ -25,7 +25,7 @@
 <!ENTITY for-s "<strong>Apache Forrest</strong>">
 <!-- Configure some sitemap components -->
-<!ENTITY generator-html-jtidy-properties "WEB-INF/">
+<!ENTITY generator-html-jtidy-properties 
 <!ENTITY dispatcher-output-serializer "xhtml">
 <!ENTITY serializer-html-encoding "UTF-8">
 <!ENTITY serializer-html-doctype-public "-//W3C//DTD HTML 4.01 

It seems to work quite well and I was able to remove the generator 
definition from my project sitemap entirely.
The file is then looked for in main/webapp/WEB-INF 
which is fine when no project specific customization is required.

I'm not really sure but maybe this could also be used to fix ?
Actually I never experienced the problem described in FOR-679 anyway so 
maybe it became invalid at some point when moving from 0.8 to 0.9dev ?


View raw message