cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: (sub)sitemap context
Date Thu, 01 Nov 2001 13:23:50 GMT
Found it. Works now. Sending a patch in a minute.
--
Torsten

> -----Original Message-----
> From: Torsten Curdt [mailto:tcurdt@dff.st]
> Sent: Thursday, November 01, 2001 1:01 PM
> To: Carsten Ziegeler; cocoon-dev@xml.apache.org
> Subject: RE: (sub)sitemap context
> 
> 
> > 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


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


Mime
View raw message