# Test that xsl:comment works # $Id: comment.t,v 1.2 2004/02/17 10:06:12 gellyfish Exp $ use strict; use Test::More tests => 2; use vars qw($DEBUGGING); $DEBUGGING = 0; use_ok('XML::XSLT'); eval { my $stylesheet =< Comment EOS my $xml =< Foo EOX my $parser = XML::XSLT->new(\$stylesheet,debug => $DEBUGGING); $parser->transform(\$xml); my $wanted = ''; my $outstr = $parser->toString; die "$outstr ne $wanted\n" unless $outstr eq $wanted; }; ok(!$@,"Comment text as expected");