perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Execute XSLT stubborn cache.
Date Fri, 21 Feb 2003 06:42:22 GMT
> 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


Mime
View raw message