cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: Cocoon-view, Cocoon-sitemap documentation
Date Sat, 03 Nov 2001 11:59:57 GMT
Bernhard Huber wrote:
> Hi,
> I was trying to use to "?cocoon-view=view" query-parameter
> on serveral URL.
> Sadly for the http://localhost:8080/cocoon/documents/* URLs
> Cocoon always responded with an HTML content.
> As I was digging around in
> \org\apache\cocoon\components\language\markup\sitemap\java\sitemap.xsl,
> I found the map:label element for setting a view label,
> in a pipeline at any point.
> Thus I changed the documentation pipelines to:
>    <map:match pattern="*.html">
>     <map:aggregate element="site">
>      <map:part src="cocoon:/book-{1}.xml"/>
>      <map:part src="cocoon:/body-{1}.xml"/>
>     </map:aggregate>
>     <map:label name="content"/>

Maybe the sitemap schema changed, but as I designed it, the label was an
attribute, not an element.

So you'd do

 <map:generator src="..."/>
 <map:transformer src="..." label="myview"/>

instead. (but don't guarantee you that it works since not many people
know even the existance of views so not much bugfixing on that side,

Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<>                             Friedrich Nietzsche

To unsubscribe, e-mail:
For additional commands, email:

View raw message