[ 
https://issues.apache.org/jira/browse/FOR-679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573171#action_12573171
 ] 

David Crossley commented on FOR-679:
------------------------------------

For example, in a fresh 'forrest seed' site, the project sitemap 
(src/documentation/sitemap.xmap) shows an example to include html source 
documents. To use JTidy, Cocoon needs to use an "html generator" rather than an 
"html reader".

The html generator is already defined in main/webapp/sitemap.xmap but when 
trying to use it in the project sitemap, the following error is issued:
Could not find component for role: 
[org.apache.cocoon.generation.Generator/html] 
(Key='org.apache.cocoon.generation.Generator/html')

So the following needs to be added to the top of your project sitemap:
...
  <map:components>
    <map:generators>
      <map:generator name="html" 
src="org.apache.cocoon.generation.HTMLGenerator">
        <jtidy-config>resources/jtidy.properties</jtidy-config>
      </map:generator>
...

and copy $FORREST_HOME/main/webapp/WEB-INF/jtidy.properties to 
PROJECT_HOME/src/documentation/resources/

> need to declare common sitemap components in the project sitemap
> ----------------------------------------------------------------
>
>                 Key: FOR-679
>                 URL: https://issues.apache.org/jira/browse/FOR-679
>             Project: Forrest
>          Issue Type: Bug
>          Components: Core operations
>    Affects Versions: 0.8
>            Reporter: David Crossley
>
> To use the HTML Generator in the project sitemap, it needs to be declared 
> there. This is already defined in the main/webapp/sitemap.xmap before 
> mounting the project sitemap.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.