> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> 
> 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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to