From: Wolfram Schneider Date: Thu, 8 Apr 2010 09:56:33 +0000 (+0000) Subject: allow to configure the maximum number of nested template calls and variables/params X-Git-Tag: CPAN-v1.02~148^2~25 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=ade4da0657fb6bab6b42c49d31321173ffb8dd48 allow to configure the maximum number of nested template calls and variables/params e.g. .pl $ZOOM::IRSpy::xslt_max_depth = 500; --- diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index 243c153..0a4614a 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -23,6 +23,7 @@ use ZOOM::IRSpy::Utils qw(cql_target render_record our @ISA = qw(); our $VERSION = '1.01'; our $irspy_to_zeerex_xsl = dirname(__FILE__) . '/../../xsl/irspy2zeerex.xsl'; +our $xslt_max_depth = 250; # Enumeration for callback functions to return @@ -78,7 +79,7 @@ sub new { my $xslt = new XML::LibXSLT; # raise the maximum number of nested template calls and variables/params (default 250) - $xslt->max_depth(250); + $xslt->max_depth($xslt_max_depth); $xslt->register_function($ZOOM::IRSpy::Utils::IRSPY_NS, 'strcmp', \&ZOOM::IRSpy::Utils::xslt_strcmp);