On Thursday, Dec 26, 2002, at 20:31 Europe/London, Bill McCabe wrote:

Hi All

I've been following AxKit passively for sometime now, and just recently started
actually using it at work. I decided to go with XPathScript as opposed to XSP or
XSLT, but maybe that was a mistake (based on the reponses to the recent thread
"lazy programmer's choice", seems like I should have gone with XSLT). Which
phase of the Apache request cycle does an XPathScript stylesheet run in? Can I
get access to $r? Am I limited to HTML output only, or can I dynamically change
the content-type header and return something else, like a PDF of a spreadsheet?
You have full access to both $r and $cgi (which is an Apache::Request object). In retrospect having both was a mistake, since $cgi has everything that $r has.

So you can set a different content type via $r or $cgi to send a different kind of output. I seem to recall an example somewhere of sending an image from XPathScript - maybe on this list (though I realise that search isn't too easy).


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



Reply via email to