You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Jarrod Stenberg <sl...@yahoo.com> on 2003/02/20 16:52:22 UTC

Execute XSLT stubborn cache.

Given:

for (1 .. 2) {
$fdat{'arg'} = $_;
Execute ({inputfile => 'getCalendar.htm', recipe =>
'EmbperlLibXSLT', xsltstylesheet =>
'xsl/small_cal.xsl'});
}

The versions: Embperl 2.0b8, perl 5.6.1, apache
1.3.27, mod_perl 1.27. It seems to me that after the
first XSLT Execute, Executes are cached because they
are deemed to be identical to the last Execute.  Is
there a way to make it so that this is not cached (in
a non-global way)?  I want it to cache elsewhere, but
not here.
-Jarrod

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Execute XSLT stubborn cache.

Posted by Gerald Richter <ri...@ecos.de>.
> Given:
>
> for (1 .. 2) {
> $fdat{'arg'} = $_;
> Execute ({inputfile => 'getCalendar.htm', recipe =>
> 'EmbperlLibXSLT', xsltstylesheet =>
> 'xsl/small_cal.xsl'});
> }
>
> The versions: Embperl 2.0b8, perl 5.6.1, apache
> 1.3.27, mod_perl 1.27. It seems to me that after the
> first XSLT Execute, Executes are cached because they
> are deemed to be identical to the last Execute.

The problem is that Embperl doesn't copy the %fdat to the xslt parameter on
the second run. Changein it to the following should work:

for (1 .. 2) {
 $param{'arg'} = $_;
 Execute ({inputfile => 'getCalendar.htm', recipe =>
 'EmbperlLibXSLT', xsltstylesheet =>
 'xsl/small_cal.xsl', xsltparam => \%param});
 }


Gerald


--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   Besuchen Sie uns auf der CeBIT vom 12. - 19. März 2003
|   Messe Hannover * Halle 17 * Stand F 36
|   http://www.cebit.de/
|
+-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org