> I might be get it wrong... But what I see is: for sub-sitemap, > invocation code we have is: > > sitemapManager.invoke ( > this.manager, environment, substitute(listOfMaps,"<xsl:value-of > select="@uri-prefix"/>"), > substitute(listOfMaps,"<xsl:value-of select="@src"/>"), > <xsl:value-of select="$check-reload"/>, <xsl:value-of > select="$reload-method"/>); > > For the root sitemap, the invocation code is: > > sitemapManager.invoke( > this.componentManager, environment, "", > this.sitemapFileName, > this.checkSitemapReload, this.reloadSitemapAsynchron); > > Inside sitemapManager.invoke, there is a line: > > environment.changeContext(uri_prefix, source); > > And if you go into AbstractEnvironment, we see: > > if(prefix.length()>=1){ > > So, the change of context occurs only for non-root (URI prefix != "") > sitemaps.
Great summary! ... I tried to remove the prefix length check and moved my cocoon installation from context:/ to context:/test. Most of the samples are working... Unfortunately this seems to have broken the ContentAggregation example. resource not found exception. no pipeline matched request /slashdot/slashdot.xml AbstractEnvironment: Changing Cocoon context(test/sitemap.xmap) to prefix() AbstractEnvironment: from context(file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/) and prefix() AbstractEnvironment: at URI news/aggregate.xml AbstractEnvironment: New context is file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/test/ AbstractEnvironment: Resolving 'cocoon:/slashdot/slashdot.xml' in context 'file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/test/' AbstractEnvironment: Resolved to 'http://172.16.3.237:8080/cocoon/slashdot/slashdot.xml' AbstractEnvironment: Resolving 'cocoon:/moreover/moreover.xml' in context 'file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/test/' AbstractEnvironment: Resolved to 'http://172.16.3.237:8080/cocoon/moreover/moreover.xml' AbstractEnvironment: Resolving 'cocoon:/isyndicate/news.xml' in context 'file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/test/' AbstractEnvironment: Resolved to 'http://172.16.3.237:8080/cocoon/isyndicate/news.xml' AbstractEnvironment: Resolving 'stylesheets/news/news.xsl' in context 'file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/test/' AbstractEnvironment: Resolved to 'file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/test/stylesheets/news/news.xsl' AbstractEnvironment: Set the URI Prefix (OLD=, NEW=) AbstractEnvironment: Reset context to file:/opt/jakarta/tomcat-4.0-b3/webapps/cocoon/ CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: /slashdot/slashdot.xml Seems me that the cocoon: protocol is affected. Although the sub sitemap example (including the retrieving via cocoon:/ and cocoon:// works just fine) ... Carsten, maybe you have an idea? Any Thoughts? -- Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]