On Monday, September 2, 2002, at 02:29  am, alan ky wrote:

> Hi,
>
> I'm trying to determine if AxKit can do this, so far
> it looks like no.
>
> What I need is, when a client requests somepage.htm, I
> have to fetch xml page via http from a sister site,
> transform it with my xslt style sheet, and return the
> transformation to another script which does a number
> of non xml things, then finally it goes back to the
> client.
>
> Currently I just spawn a Java Xalan instance each
> time, to perform the transformation, and spit the
> content back to the script that needs it.
>
> These seems rather kludgy to me, so I've been looking
> for a faster solution (there's no getting around the
> basic fetch xml from another site etc).
>
> Can AxKit do something like this, or is there any
> advantage to using it in this scenario?

Yes, it's really very simple. Just create a new Provider class that 
does the fetching (via LWP::UserAgent, or HTTP::GHTTP). All you need to 
do is subclass Apache::AxKit::Provider, and implement a few methods 
like key(), mtime(), init(), get_fh(), get_strref() and so on. Look at 
the Scalar or File providers for example code.

Matt.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to