You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Arjé Cahn <Ar...@hippo.nl> on 2003/03/05 16:41:37 UTC

view in mounted subsitemap not functioning, 2.0.5dev

Hi all,

I've got trouble defining a view in a mounted sitemap. I'm using Cocoon 2.0.5dev.
The following is the situation (simplified example):

/cocoon/sitemap.xmap : 

	<map:mount uri-prefix="" src="file://c:/foo/sitemap.xmap" check-reload="yes"/>

/foo/sitemap.xmap:
.....
	<map:views>
		<map:view from-position="last" name="data">
			<map:serialize type="xml"/>
		</map:view>
	</map:views>
.....
	<map:match pattern="header">
		<map:generate type="file" src="resources/header.xml"/>
		<map:serialize type="html"/>
	</map:match>
.....


Now, when I call
http://unittest:8080/header
I get the corresponding HTML page (which is good).

After calling
http://unittest:8080/header?cocoon-view=data
I still get the HTML serialized version.... 
What's happening with the view? When running the same test from within the main sitemap, it works perfectly.

Any clues?

Regards,

Arje Cahn


---------------------------------------------------------
Arjé Cahn, Software Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org