summaryrefslogtreecommitdiff
path: root/t/02-xslt.t
diff options
context:
space:
mode:
authorGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 13:00:46 +0100
committerGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 13:00:46 +0100
commit26248672c6b3ee8f8b10dff5f2b8302e008f46c1 (patch)
tree0035267f3e4b3ab4aa64c22ca60d2018cc6b6e1d /t/02-xslt.t
parentlibxml, no namespace support (diff)
downloadTree-Template-Declare-26248672c6b3ee8f8b10dff5f2b8302e008f46c1.tar.gz
Tree-Template-Declare-26248672c6b3ee8f8b10dff5f2b8302e008f46c1.tar.bz2
Tree-Template-Declare-26248672c6b3ee8f8b10dff5f2b8302e008f46c1.zip
LibXML with namespace support, and fixed tests
Diffstat (limited to 't/02-xslt.t')
-rw-r--r--t/02-xslt.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/02-xslt.t b/t/02-xslt.t
index e47572b..49e617a 100644
--- a/t/02-xslt.t
+++ b/t/02-xslt.t
@@ -1,4 +1,10 @@
#!perl
+package main;
+use Test::Most 'die';
+BEGIN {
+eval 'use Tree::DAG_Node::XPath; require Tree::Transform::XSLTish';
+plan skip_all => 'Tree::DAG_Node::XPath and Tree::Transform::XSLTish needed for this test' if $@;
+}
package Copy;{
use Tree::Transform::XSLTish;
@@ -24,12 +30,13 @@ tree_rule match => '*', priority => 0, action => sub {
}
package main;
-use Test::Most 'no_plan','die';
use strict;
use warnings;
use Tree::Template::Declare options => {builder => Tree::Template::Declare::DAG_Node->new('Tree::DAG_Node::XPath') };
use Data::Dumper;
+plan tests=>1;
+
sub Tree::DAG_Node::XPath::Root::xpath_get_root_node { return $_[0] }
sub Tree::DAG_Node::XPath::Root::xpath_get_parent_node { return }