On Apr 9, 2008, at 11:36 PM, Kamal Bhatt wrote:
As such, how do I point Cocoon to use a sitemap outside the main Cocoon project?

Depends what you mean... If using 2.2 blocks, add a parameter to the block servlet bean definition. Like this:

<bean name="org.apache.cocoon-welcome.block" class="org.apache.cocoon.sitemap.SitemapServlet">
    <servlet:init-params>
      <entry key="sitemap-path" value="file:///path/to/sitemap.xmap"/>
    </servlet:init-params>
<servlet:context mount-path="/" context-path="blockcontext:/ cocoon-welcome/">
      <servlet:connections>
<entry key="style" value- ref="org.apache.cocoon.samples.style.default.servlet"/>
      </servlet:connections>
    </servlet:context>
  </bean>


If using classic mode, it is same as usual, <sitemap/> element in main xconf file.


Vadim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to