cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: XInclude-Transform between the "xsp:logic"-Tag
Date Tue, 23 Apr 2002 04:09:16 GMT
> From: Katrin_Seiffert@mn.man.de [mailto:Katrin_Seiffert@mn.man.de]
> 
> 
> Hello,
> 
> I want to make an XInclude-Transform between the "xsp:logic"-Tag. But
there
> happens an "org.apache.cocoon.components.language.LanguageException".
> I think the Problem is the order. The XIncludeTransforme must perform
> before the ServerPagesGenerator.
> 
> I use the following code:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> 
> <xsp:page
>       language="java"
>       xmlns:xsp="http://apache.org/xsp"
>       xmlns:xi="http://www.w3.org/2001/XInclude">
> 
>       <xsp:logic>
>             <xi:include parse="text" href="xspSearchStringLogik.txt"/>
>       </xsp:logic>
> 
>       <page>
>             <xi:include href="locations.xml"/>
>             <xi:include href="languageVersions.xml"/>
> 
> 
>             <test><xsp:expr>getTest()</xsp:expr></test>
>       </page>
> 
> </xsp:page>
> 
> My sitemap.xmap - Part is:
> 
> <map:match pattern="index.xml">
>    <map:generate type="serverpages" src="index.xml"/>
>    <map:transform type="xinclude" />
>    <map:serialize/>
> </map:match>
> 
> Wath can I do?

Do this one step at a time. First, generate source of your XSP. Second,
feed this to the serverpages generator. To get help with these two,
study sub sitemap examples ("sub" directory in the webapp). And last,
think how to do without this trick or (if you think this trick is
required) how to improve performance of such solution.

Vadim

> Thank you in advance
> 
> Katrin Seiffert


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message