# $Id: doe.t,v 1.2 2001/12/17 11:32:08 gellyfish Exp $ # check disable-output-escaping && the interface use Test::More tests => 7; use strict; use_ok('XML::XSLT'); my $parser = eval { my $stylesheet =< <&<& EOS XML::XSLT->new($stylesheet,warnings => 'Active'); }; ok(! "$@","new from stylsheet text"); ok($parser,"new successful"); eval { $parser->transform(\<

<&

EOX }; ok(!"$@","transform xml"); my $outstr= eval { $parser->toString }; ok(!$@,"toString works"); ok($outstr,"Output is expected"); my $correct='<&<&<&<&'; ok($outstr eq $correct,"Output is what we expected it to be");