On Fri, 15 Sep 2006, Lars Skjærlund wrote:

Hi again,

Now for the next question:

With Ax1, I could pass parameters from Perl code to the XSLT processor
and use them in my stylesheets by setting these in the Apache request
object - something like:

my $cgi = Apache::Request->instance($r);
$cgi->parms->set('od.request.uri' => $uri);

With Ax2, I hoped the same would be possible like

$hd->add_param('od.request.uri', $uri);

but this doesn't seem to be the case. How do I pass parameters from
Perl code to the XSLT processor?

In AxKit2 no parameters are automatically passed. I always considered this a bit of a "bug" in AxKit1, as it's kind of magical.

Instead you do:

  $processor->transform(
    XSLT($stylesheet, 'od.request.uri' => $uri)
  );

And I guess also pass in any querystring params you want passed in.

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

Reply via email to