use Test;
BEGIN { plan tests => 8 }
use XML::LibXSLT;
use XML::LibXML;
ok(1);
my $parser = XML::LibXML->new();
my $xslt = XML::LibXSLT->new();
my $source = $parser->parse_string(<<'EOF');
NEXT
LAST
EOF
ok($source);
my $style_doc = $parser->parse_string(<<'EOF');
EOF
ok($style_doc);
my $stylesheet = $xslt->parse_stylesheet($style_doc);
ok($stylesheet);
my $results = $stylesheet->transform($source,
'incoming' => "'INCOMINGTEXT'",
# 'incoming' => "'INCOMINGTEXT2'",
'outgoing' => "'OUTGOINGTEXT'",
);
ok($results);
ok($stylesheet->output_string($results));
my @params = XML::LibXSLT::xpath_to_string('empty' => undef);
$results = $stylesheet->transform($source, @params);
ok($results);
ok($stylesheet->output_string($results));