I just tried using cocoon://nav_bar.xsp but it still didn't work. Looking in the core.log I found the following message:
DEBUG (2002-07-11) 13:19.09:225 [core.url-factory](/cocoon/index.xsp) Thread-6/URLFactoryImpl: Making URL from cocoon://nav_bar.xsp DEBUG (2002-07-11) 13:19.09:225 [core.url-factory](/cocoon/index.xsp) Thread-6/URLFactoryImpl: Making URL - MalformedURLException in getURL: java.net.MalformedURLException: unknown protocol: cocoon at java.net.URL.<init>(URL.java:586) at java.net.URL.<init>(URL.java:476) at java.net.URL.<init>(URL.java:425) at org.apache.cocoon.components.url.URLFactoryImpl.getURL(URLFactoryImpl.java:1 18) at org.apache.cocoon.www.logic.site_format_xsp.generate(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/logi c\site_format_xsp.java:1051) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:260) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:251) at org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:3 51) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS LTProcessorImpl.java:233) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS LTProcessorImpl.java:204) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java: 295) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab stractEventPipeline.java:215) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven tPipeline.java:279) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi ngEventPipeline.java:142) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:320) at org.apache.cocoon.www.sitemap_xmap.matchN4002E2(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\site map_xmap.java:2525) at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\site map_xmap.java:2121) at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\site map_xmap.java:2021) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:646) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:644) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:644) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:644) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:536) If anyone can make a suggestion it would be much appreciated. I'm using cocoon 2.0.2-dev, Tomcat 4.1.3b and JDK1.4.0 -Eric Dalquist ----- Original Message ----- From: "Vadim Gritsenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 12:02 PM Subject: RE: [Q] util:include-uri relative path > > From: Eric Dalquist [mailto:[EMAIL PROTECTED]] > > > > I'm wondering if I can use include-uri to include the output of an XSP > in > > another XSP. I can get it to work if I use the full path but I don't > want to > > do it this way unless I can use a relative path. The file is being > included > > in site_format.xsp which is used as a style sheet for index.xsp > > > > Here is the working include: > > <util:include-uri > > href="http://www.incoherentramblings.net:8888/cocoon/nav_bar.xsp"/> > > > > I would like to do: > > <util:include-uri href="nav_bar.xsp"/> > > Why not: > > <util:include-uri href="cocoon://nav_bar.xsp"/> > > ? > > > Vadim > > > > > Here is my dir structure: > > <TOMCAT_HOME>/ > > webapps/ > > cocoon/ > > sitemap.xmap > > logic/ > > site_format.xsp > > nav_bar.xsp > > index.xsp > > stylesheets/ > > nav_bar.xsl > > index.xsl > > > > > > Here is an experpt from my sitemap: > > > > > > <!-- > > | This is the ONLY special style sheet in the site. It is > > generate so that > > | the nav bar, which is constant on all pages, can be > dynamic. > > --> > > <map:match pattern="site_format.xsl"> > > <map:generate type="serverpages" > > src="logic/site_format.xsp"/> > > <map:serialize type="xml"/> > > </map:match> > > <!-- > > | The navbar generator. We don't want to run the > site_format on > > this. > > --> > > <map:match pattern="nav_bar.xsp"> > > <map:generate type="serverpages" > src="logic/nav_bar.xsp"/> > > <map:transform src="stylesheets/nav_bar.xsl"/> > > <map:serialize type="xml"/> > > </map:match> > > > > <!-- > > | Generate any .xsp file. We apply it's style sheet and > then > > the > > | main site stylesheet. > > --> > > <map:match pattern="*.xsp"> > > <map:generate type="serverpages" src="logic/{1}.xsp"/> > > <map:transform src="cocoon:/site_format.xsl"/> > > <map:transform src="stylesheets/{1}.xsl"/> > > <map:serialize/> > > </map:match> > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>