summaryrefslogtreecommitdiff
path: root/t/02-xslt.t
diff options
context:
space:
mode:
Diffstat (limited to 't/02-xslt.t')
-rw-r--r--t/02-xslt.t10
1 files changed, 4 insertions, 6 deletions
diff --git a/t/02-xslt.t b/t/02-xslt.t
index 0870716..2778586 100644
--- a/t/02-xslt.t
+++ b/t/02-xslt.t
@@ -7,18 +7,16 @@ use strict;
use warnings;
tree_rule match => '/', action => sub {
- my $t=$_[0];
tree {
- $t->apply_rules;
+ $_[0]->apply_rules;
};
};
tree_rule match => '*', priority => 0, action => sub {
- my $t=$_[0];
node {
- name $t->it->name;
- attribs %{$t->it->attributes};
- $t->apply_rules;
+ name $_[0]->it->name;
+ attribs %{$_[0]->it->attributes};
+ $_[0]->apply_rules;
};
};