I used xscript.
Try this one.
At 09:26 02/11/29, Cocoon User wrote:
>
>is it possible to include an xml file relative to a give parameter?
>
>
>
>http://....../page.xsp?page=first
>
>
<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:xscript="http://apache.org/xsp/xscript/1.0"
>
> <xsp:logic>
String thepage = request.getParameter("page");
> if (thePage.equals("first"){
<xscript:variable name="firstpage" href="/first.xml"/>
<xscript:get name="firstpage"/>
> }
>
>
>..
>...
>
>
>thnx
>Kounis stavros
>
>i use entities to include .xml files into .xml
--
Yoshiyuki Kumadaki / 熊懐 善之
Web Japan Co.,Ltd / (株)ウエブジャパン
<http://www.webjp.co.jp/>
---------------------------------------------------------------------
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]>