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,
yet!)
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<[EMAIL PROTECTED]> Friedrich Nietzsche
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]