You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cocoon User <co...@eng.gr> on 2002/11/29 01:26:54 UTC

xsp include xml

is it possible to include an xml file relative to a give parameter?



http://....../page.xsp?page=first


...
...
..
	<xsp:logic>
	String thePage = {how can i assign the page parameter content to  thePage var???}

	if (thePage.equals("first"){
		{.. how can i include first.xml..?}
	}


..
...


thnx
Kounis stavros

i use entities to include .xml files into .xml




---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: xsp include xml

Posted by Yoshiyuki Kumadaki <ku...@webjp.co.jp>.
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>