# $Id: call_template.t,v 1.1 2002/01/08 10:11:47 gellyfish Exp $ # Check call-template use strict; my $DEBUGGING = 0; use Test::More tests => 2; use_ok('XML::XSLT'); my $stylesheet =< doc found EOS my $xml = '
'; eval { my $xslt = XML::XSLT->new($stylesheet, debug => $DEBUGGING); my $expected = 'doc found'; $xslt->transform(\$xml); my $outstr = $xslt->toString(); $outstr =~ s/^\s+//; $outstr =~ s/\s+$//; warn "$outstr\n" if $DEBUGGING; $xslt->dispose(); die "$outstr ne $expected\n" unless $outstr eq $expected; }; ok(!$@,'Call template');