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~54^2~93^2~25 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=d0606215d834b8491bb530862eb497a2255448b4;p=irspy-moved-to-github.git 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);