On Thu, 25 Apr 2002, Steve Willer wrote:
> On Thu, 25 Apr 2002, Matt Sergeant wrote:
>
> > Steve Willer and Jorg were both at one time working on being able to call
> > AxKit from within AxKit (as a subrequest). Should be quite possible, but
> > probably needs some issues fixed. Then you'd be able to request something
> > like "axkit://order.xsp".
>
> It's working for me, but...well, I sorta had to dump the AxKit part and
> just keep XSP and TLH.
>
> It also was definitely not easy, because there's typically a lot of code
> that calls mod_perl (to do redirects, to "exit", to get and set
> parameters, to retrieve posts, to set content-type, etc.).
Oh...sorry, I was responding to what I thought you were saying. I was
trying to solve two major problems:
a) can't run XSP/XSL pipelines outside Apache
b) can't execute XSP files in a subrequest (e.g. bring in dynamic content
through an XSL document() call)
I was talking about (a), you were talking about (b). I solved both by
getting out of AxKit, sadly. I think (b) would be fairly easy to do,
however. We would begin by removing the "if I'm in a subrequest, don't
process" code in AxKit.pm. We'd also need to have the system keep track of
whether it's an inner or outer instantiation of AxKit, and have a special
rule in the pipeline definition that says "quit at this point if I'm a
subrequest".
I'll expand on that last step by describing an example pipeline:
FOR foo.xml:
- process it as XSP if it's XSP
* quit here if we're in a subrequest
- run it through foo.xsl
- run it through layout.xsl
That * rule would have to be added.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]