You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jeroen Cranendonk <j....@emaxx.nl> on 2003/05/02 16:22:02 UTC
Xsp Includes Xsp
I''m having an iddle problem :)
I've written an xsp file, it's referenced in the sitemap by the xsp
generater gizmo.
Everything fine with that :)
Now I want to include a generic part in this xsp. This generic part wil
contain xml
bits, and could easily be include with one of the <uitl:includeSomething>
kinda logicsheet
tags if that was all.
The problem is that this generic part should also contain xsp
statements/logicsheet tags,
including the thing with util: only copies over the content, but doesn't
actually parse it as an xsp page/fragment.
Soo, is there any way to do what I want ?
Is hte only way to write some special component for it ? (which I prolly
wont ;)
does anyone feel like writing something to enable this ? ^.^ (A logicsheet
using the xsp generator for example ? )
Many thanks in advance,
Jeroen Cranendonk.
(p.s., If the problem isn't clear enough, just ask, I'll be happy to
elaborate :)
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Xsp Includes Xsp
Posted by Yury Mikhienko <Yu...@mobicomk.ru>.
On Mon, 5 May 2003 10:08:49 +0200
"Jeroen Cranendonk" <j....@emaxx.nl> wrote:
> > Tony Collen <tc...@neuagency.com> wrote:
> >
> > > On Fri, 2 May 2003, Jeroen Cranendonk wrote:
> > >
> > > > Now I want to include a generic part in this xsp. This generic part
> wil
> > > > contain xml
> > > > bits, and could easily be include with one of the
> <uitl:includeSomething>
> > > > kinda logicsheet
> > > > tags if that was all.
> > > >
> > > > The problem is that this generic part should also contain xsp
> > > > statements/logicsheet tags,
> > > > including the thing with util: only copies over the content, but
> doesn't
> > > > actually parse it as an xsp page/fragment.
> > >
> > > I think I've run into people with this requirement before... here's what
> I
> > > suggest:
> > >
> > > Use 2 pipelines. One to create the XSP file, which will use CInclude
> to
> > > include the data you want at the point, and then use another pipeline
> > > which generates the serverpage from the other pipeline, like this:
> > >
> > > <map:pipeline>
> > > <map:match pattern="myxsp.xml">
> > > <map:generate src="docs/myxsp.xml"/>
> > > <map:transform type="cinclude"/>
> > > <map:serialize type="xml"/>
> > > </map:match>
> > >
> > > <map:match pattern="my.xsp">
> > > <map:generate src="myxsp.xml" type="serverpages"/>
> > > <map:transform src="xslt/xsp2html2.xsl"/>
> > > <map:serialize type="html"/>
> > > </map:match>
> > > </map:pipeline>
> > >
> > > In "myxsp.xml", you'd obviously have the correct cinclude tags where you
> > > want them to appear in your final xsp.
> > >
> > > tony
> > >
> >
> > In this case, you can use internal only sitemaps also.
> > But cocoon do rebuild the xsp source always (in this cause).
> >
>
> I'm sorry, but I didn't quite catch what you're trying to say, could you
> elaborate perhaps ? :)
> tony's option looks interesting btw., I'll see if that's a no option, though
> it might clash with the already
> kinda complex sitemap I use :)
>
Ok, for example:
<snip by Tony Collen :))>
<map:pipeline internal-only="true">
<map:match pattern="myxsp">
<map:generate type="file" src="docs/myxsp.xml"/>
<map:transform type="cinclude"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="my.xsp">
<map:generate type="serverpages" src="cocoon:/myxsp"/>
<map:transform src="stylesheets/xsp2html.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
</snip>
--
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: consuming RSS through cocoon?
Posted by joni santoso <st...@plasa.com>.
I downloaded it.
When I want to access monkeyfist this is what happened.
What was going wrong? And it seems that all the all the
front-page articles served from static htmls :(.
I want to make something like portlets.
message Exception during processing of
http://monkeyfist.com/rss1.php3
description org.apache.cocoon.ProcessingException:
Exception during processing of
http://monkeyfist.com/rss1.php3:
java.net.UnknownHostException: monkeyfist.com
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.cocoon.ProcessingException: Exception during
processing of http://monkeyfist.com/rss1.php3:
java.net.UnknownHostException: monkeyfist.com
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:211)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
at
org.apache.cocoon.www.file_.C_.Tomcat4118.webapps.cocoon_mag.sitemap_xmap.matchN4000A2(C:\Tomcat4118\work\Standalone\localhost\cocoon-mag\cocoon-files\org/apache/cocoon/www/file_/C_/Tomcat4118/webapps/cocoon_mag\sitemap_xmap.java:1093)
at
org.apache.cocoon.www.file_.C_.Tomcat4118.webapps.cocoon_mag.sitemap_xmap.process(C:\Tomcat4118\work\Standalone\localhost\cocoon-mag\cocoon-files\org/apache/cocoon/www/file_/C_/Tomcat4118/webapps/cocoon_mag\sitemap_xmap.java:739)
at
org.apache.cocoon.www.file_.C_.Tomcat4118.webapps.cocoon_mag.sitemap_xmap.process(C:\Tomcat4118\work\Standalone\localhost\cocoon-mag\cocoon-files\org/apache/cocoon/www/file_/C_/Tomcat4118/webapps/cocoon_mag\sitemap_xmap.java:668)
at
org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
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:999)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
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.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
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:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.net.UnknownHostException: monkeyfist.com
at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at
sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at
sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at
sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.(HttpClient.java:303)
at sun.net.www.http.HttpClient.(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1169)
at
java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:309)
at
java.net.URLConnection.getLastModified(URLConnection.java:428)
at
org.apache.cocoon.components.source.URLSource.getInfos(URLSource.java:171)
at
org.apache.cocoon.components.source.URLSource.getLastModified(URLSource.java:193)
at
org.apache.cocoon.generation.FileGenerator.generateKey(FileGenerator.java:113)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:284)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317)
... 38 more
java.net.UnknownHostException: monkeyfist.com
at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at
sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at
sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at
sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.(HttpClient.java:303)
at sun.net.www.http.HttpClient.(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1169)
at
java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:309)
at
java.net.URLConnection.getLastModified(URLConnection.java:428)
at
org.apache.cocoon.components.source.URLSource.getInfos(URLSource.java:171)
at
org.apache.cocoon.components.source.URLSource.getLastModified(URLSource.java:193)
at
org.apache.cocoon.generation.FileGenerator.generateKey(FileGenerator.java:113)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:284)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:317)
at
org.apache.cocoon.www.file_.C_.Tomcat4118.webapps.cocoon_mag.sitemap_xmap.matchN4000A2(C:\Tomcat4118\work\Standalone\localhost\cocoon-mag\cocoon-files\org/apache/cocoon/www/file_/C_/Tomcat4118/webapps/cocoon_mag\sitemap_xmap.java:1093)
at
org.apache.cocoon.www.file_.C_.Tomcat4118.webapps.cocoon_mag.sitemap_xmap.process(C:\Tomcat4118\work\Standalone\localhost\cocoon-mag\cocoon-files\org/apache/cocoon/www/file_/C_/Tomcat4118/webapps/cocoon_mag\sitemap_xmap.java:739)
at
org.apache.cocoon.www.file_.C_.Tomcat4118.webapps.cocoon_mag.sitemap_xmap.process(C:\Tomcat4118\work\Standalone\localhost\cocoon-mag\cocoon-files\org/apache/cocoon/www/file_/C_/Tomcat4118/webapps/cocoon_mag\sitemap_xmap.java:668)
at
org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
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:999)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
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.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
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:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
request-uri
/cocoon-mag/home/monkeyfist.html
path-info
home/monkeyfist.html
On Mon, 5 May 2003 11:15:09 +0200 (CEST)
Stephan Michels <st...@apache.org> wrote:
>
>
>
>On Mon, 5 May 2003, joni santoso wrote:
>
>> Hi,
>>
>> since cocoon takes sax stream mostly, is it possible
>>then
>> to feed it with RSS? what generator should i use?
>
>http://www.xml.com/pub/a/2003/04/23/cocoon-magazine.html
>
>Stephan.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail:
>cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail:
>cocoon-users-help@xml.apache.org
>
Regards,
Joni
===========================================================================================
"TELKOMNet Instan memberikan diskon 40% untuk akses malam hari dari pukul 23.00 sampai 06.00.
Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 30 Juni 2003."
===========================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: consuming RSS through cocoon?
Posted by Stephan Michels <st...@apache.org>.
On Mon, 5 May 2003, joni santoso wrote:
> Hi,
>
> since cocoon takes sax stream mostly, is it possible then
> to feed it with RSS? what generator should i use?
http://www.xml.com/pub/a/2003/04/23/cocoon-magazine.html
Stephan.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
consuming RSS through cocoon?
Posted by joni santoso <st...@plasa.com>.
Hi,
since cocoon takes sax stream mostly, is it possible then
to feed it with RSS? what generator should i use?
thx
===========================================================================================
"TELKOMNet Instan memberikan diskon 40% untuk akses malam hari dari pukul 23.00 sampai 06.00.
Berlaku untuk wilayah Jawa Timur mulai 1 Mei 2003 sampai 30 Juni 2003."
===========================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Xsp Includes Xsp
Posted by Jeroen Cranendonk <j....@emaxx.nl>.
> Tony Collen <tc...@neuagency.com> wrote:
>
> > On Fri, 2 May 2003, Jeroen Cranendonk wrote:
> >
> > > Now I want to include a generic part in this xsp. This generic part
wil
> > > contain xml
> > > bits, and could easily be include with one of the
<uitl:includeSomething>
> > > kinda logicsheet
> > > tags if that was all.
> > >
> > > The problem is that this generic part should also contain xsp
> > > statements/logicsheet tags,
> > > including the thing with util: only copies over the content, but
doesn't
> > > actually parse it as an xsp page/fragment.
> >
> > I think I've run into people with this requirement before... here's what
I
> > suggest:
> >
> > Use 2 pipelines. One to create the XSP file, which will use CInclude
to
> > include the data you want at the point, and then use another pipeline
> > which generates the serverpage from the other pipeline, like this:
> >
> > <map:pipeline>
> > <map:match pattern="myxsp.xml">
> > <map:generate src="docs/myxsp.xml"/>
> > <map:transform type="cinclude"/>
> > <map:serialize type="xml"/>
> > </map:match>
> >
> > <map:match pattern="my.xsp">
> > <map:generate src="myxsp.xml" type="serverpages"/>
> > <map:transform src="xslt/xsp2html2.xsl"/>
> > <map:serialize type="html"/>
> > </map:match>
> > </map:pipeline>
> >
> > In "myxsp.xml", you'd obviously have the correct cinclude tags where you
> > want them to appear in your final xsp.
> >
> > tony
> >
>
> In this case, you can use internal only sitemaps also.
> But cocoon do rebuild the xsp source always (in this cause).
>
I'm sorry, but I didn't quite catch what you're trying to say, could you
elaborate perhaps ? :)
tony's option looks interesting btw., I'll see if that's a no option, though
it might clash with the already
kinda complex sitemap I use :)
Greetings,
J.Cranendonk
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Xsp Includes Xsp
Posted by Yury Mikhienko <Yu...@mobicomk.ru>.
On Fri, 2 May 2003 10:27:46 -0400 (EDT)
Tony Collen <tc...@neuagency.com> wrote:
> On Fri, 2 May 2003, Jeroen Cranendonk wrote:
>
> > Now I want to include a generic part in this xsp. This generic part wil
> > contain xml
> > bits, and could easily be include with one of the <uitl:includeSomething>
> > kinda logicsheet
> > tags if that was all.
> >
> > The problem is that this generic part should also contain xsp
> > statements/logicsheet tags,
> > including the thing with util: only copies over the content, but doesn't
> > actually parse it as an xsp page/fragment.
>
>
> I think I've run into people with this requirement before... here's what I
> suggest:
>
> Use 2 pipelines. One to create the XSP file, which will use CInclude to
> include the data you want at the point, and then use another pipeline
> which generates the serverpage from the other pipeline, like this:
>
>
> <map:pipeline>
> <map:match pattern="myxsp.xml">
> <map:generate src="docs/myxsp.xml"/>
> <map:transform type="cinclude"/>
> <map:serialize type="xml"/>
> </map:match>
>
> <map:match pattern="my.xsp">
> <map:generate src="myxsp.xml" type="serverpages"/>
> <map:transform src="xslt/xsp2html2.xsl"/>
> <map:serialize type="html"/>
> </map:match>
> </map:pipeline>
>
> In "myxsp.xml", you'd obviously have the correct cinclude tags where you
> want them to appear in your final xsp.
>
> tony
>
In this case, you can use internal only sitemaps also.
But cocoon do rebuild the xsp source always (in this cause).
--
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Xsp Includes Xsp
Posted by Tony Collen <tc...@neuagency.com>.
On Fri, 2 May 2003, Jeroen Cranendonk wrote:
> Now I want to include a generic part in this xsp. This generic part wil
> contain xml
> bits, and could easily be include with one of the <uitl:includeSomething>
> kinda logicsheet
> tags if that was all.
>
> The problem is that this generic part should also contain xsp
> statements/logicsheet tags,
> including the thing with util: only copies over the content, but doesn't
> actually parse it as an xsp page/fragment.
I think I've run into people with this requirement before... here's what I
suggest:
Use 2 pipelines. One to create the XSP file, which will use CInclude to
include the data you want at the point, and then use another pipeline
which generates the serverpage from the other pipeline, like this:
<map:pipeline>
<map:match pattern="myxsp.xml">
<map:generate src="docs/myxsp.xml"/>
<map:transform type="cinclude"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="my.xsp">
<map:generate src="myxsp.xml" type="serverpages"/>
<map:transform src="xslt/xsp2html2.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
In "myxsp.xml", you'd obviously have the correct cinclude tags where you
want them to appear in your final xsp.
tony
--
Tony Collen
ICQ: 12410567
--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/
--
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org