Update:

After much more experimentation I've found that if I declare the namespace
directly in the xi:include tag then the include works.   If in try to
declare the namespace in the root document tag then the include fails.  Even
better, if I include another XSP file then the XSP is parsed and the results
are included.  So now I've run into a new interesting issue.

I can try this:
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
href="/htdocs/something.xsp?user=cgaliher"/>
 
The xsp page doesn't see the params passed which I guess is to be expected.


Alternatively I can try this:
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
href="http://aardvark/something.xsp?user=cgaliher"/>

This works and passes the params to the included XSP page but this uses
another connection on httpd and also prevents me from placing something.xsp
in a directory that requires authentication by apache.

So my question is:  Is there a way to pass paramters to a file URI similar
to example 1 so I don't have to suffer the consequences I would if I used
example 2?

Cliff


-----Original Message-----
From: Cliff Galiher 
Sent: Monday, May 06, 2002 11:09 AM
To: 'Matt Sergeant'
Cc: '[EMAIL PROTECTED]'
Subject: RE: Layering XSP's


I've attempted to use xinclude and the inclusion isn't working.  I've tried
this for XSP pages and raw XML pages and neither are including properly.
I'm using the the namespace
xmlns:xi="http://www.w3.org/2001/XInclude"; in the root xsp:page as well as
my test xml document.

Cliff


-----Original Message-----
From: Matt Sergeant [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 4:23 PM
To: Cliff Galiher
Cc: '[EMAIL PROTECTED]'
Subject: Re: Layering XSP's


Cliff Galiher wrote:
>>I'm trying to find a way to use an XSP page within a larger XSP page I'm
>>creating.  I've tried to use <util:include> but this just dumps the XSP
>>page into the larger page as raw XML without running the included XSP page
>>through the XSP engine.  The result is that the page has my SQL commands
>>listed instead of the ESQL results I want returned.  If anybody has some
>>insight on how I can embed one XSP page within another I'd be very
>>greatful.

I can't remember if xinclude parsing is enabled for XSP, but it 
certainly should be, which does what you want. If it's not enabled, then 
let me know as that's a bug.

Matt.

Reply via email to