Hi Will, I agree the documentation is not in an admirable state of consistency and completeness. It would be great if somebody could edit it to tell the user where <map:views> goes in the sitemap.
Probably the most helpful thing you may not have processed in the documentation is the allusion to "the samples sitemap": samples/sitemap.xmap under the Cocoon build/webapp folder. It has a few example views that show exactly where to put the <map:views> and <map:view> elements. In short, <map:views> goes between <map:components> and <map:pipelines>, not inside either of them. And yes the <map:views> wrapper is required. HTH, Lars On 11/18/2009 10:55 AM, Will Sheppard wrote: > I can't get views to work, at all. > > I followed the instructions here: > http://cocoon.apache.org/2.1/userdocs/concepts/views.html > > First of all, there is a repeated typo in the documentation that needs > to be fixed: There is a missing ending tag </map:views> on most of the > examples. > Also, the link to edit or comment on the document, doesn't work: > http://cocoon.zones.apache.org/daisy/legacydocs/577 > > If I follow the examples and add the code with the missing > </map:views> inside the <map:pipeline> area, then I get an error > "Cannot invoke views" when trying to invoke it at > http://localhost:8889/my/pipeline?cocoon-view=my_view > > If I remove the wrapper of <map:views> and </map:views> then I get > this error: > "Must set a generator before setting serializer 'xml' " > What? You aren't allowed to to use a generator in a view -- I thought > that’s the whole point! > > If I put the view *after* the pipeline in question (instead of before) > then it seems to have no effect. > > If I put the <map:views> section inside the <map:components> instead > of inside <map:pipelines>, then I get the error "Unknown component > type 'views' " > > Am I missing something? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
