On Monday 11 March 2002 23:16, Kip Hampton wrote:
> Now that i think about it... are the request/server/environment vars
> something that folks will want, in general, to be available to their
> stylesheets? If so, and I get enough "+1"s here, I'd be willing to ram
> out and CPAN a Plugin that does all that stuff...

I'm rather +1 on that, lets say +0.82 or some such ;-) 

Pros:
 - this is definitely useful.

Not-Really-Cons:
 - setting them all up will be a bit costly and generally useless: we need 
some configurability.
 - munging CGI params is imho not such a good idea. 1.5.1 has the 
functionality to only pass that info to Apache::AxKit::Language::* processors 
(that functionality is also available as a patch against 1.4). The way this 
works is really simple: you can set $r->pnotes('extra_xslt_params') to either 
and arrayref or hashref (in which case the contents will be added -- be 
cautious that arrays with an odd number of elements will give your XSLT 
trouble as that happened prior to current CVS with multi-values) or you can 
provide a coderef that will be called with $r, $cgi, and the arrayref of 
params to be passed to the stylesheet. Modify that arrayref in place so that 
the XSLT will see it.
  The latter part of this (coderef) is imho a cleaner approach and it makes 
it really easy to make things flexible (just throw it some simple code that 
changes an array, and you're done).

AxKit::Plugin::DisableXSLTParams already makes use of some of that 
functionality.

-- 
_______________________________________________________________________
Robin Berjon <[EMAIL PROTECTED]> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
"It's better to be quotable than to be honest." -- Tom Stoppard


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

Reply via email to