On Tue, 2003-08-12 at 17:40, Gould, Troy (ELS) wrote:
> First, can you even use Resources in Cocoon 2.0.4?
> 
> Does a resource have to follow the same rules of a pipeline (1 Generator, 0
> or more Transformers, and 1 Serializer?  I've seen different docs saying
> different things.

It depends on the implementation of the sitemap engine you are using. In
2.0.4, the default implementation is the "compiled sitemap", which only
supports resources that finish a pipeline, thus that contain 0 or more
transformers and end in a serializer.

The "interpreted sitemap engine" on the other hand is more flexible and
allows resources to contain any part of a pipeline. They are not
required to end in a serializer.

<snip/>
>       at
> org.apache.cocoon.www.sitemap_xmap.matchN125(sitemap_xmap.java:1410)
>       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:911)
>       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:832)

And from this it is clear that you're using the compiled engine. To
switch to the interpreted engine, edit the file WEB-INF/cocoon.xconf,
and comment out (or remove) the following lines:

  <sitemap class="org.apache.cocoon.sitemap.SitemapManager"
           file="sitemap.xmap" reload-method="synchron" check-reload="yes" 
logger="sitemap"/>

and uncomment the following line:
  <!-- sitemap logger="sitemap"/ -->

thus change it into:
  <sitemap logger="sitemap"/>


-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


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

Reply via email to