]> git.sesse.net Git - xml-template/commitdiff
More fixes.
authorsgunderson@bigfoot.com <>
Wed, 6 Sep 2006 13:55:43 +0000 (15:55 +0200)
committersgunderson@bigfoot.com <>
Wed, 6 Sep 2006 13:55:43 +0000 (15:55 +0200)
tests/xml-diff.pl

index 5a59dd2738e748a4ffea7c9d978c9833c98606e0..861e6a37a408904a07b3e64db7bb786a0fc1972a 100644 (file)
@@ -5,11 +5,12 @@
 # regression testing.
 #
 
+use strict;
+use warnings;
+
 use XML::DOM;
 use XML::Parser;
 use XML::NamespaceSupport;
-use Scalar::Util;
-package XML::Template;
 
 my $parser = XML::DOM::Parser->new;
 my $d1 = $parser->parsefile($ARGV[0]);
@@ -88,7 +89,7 @@ sub compare_attr_list {
        my ($attrs1, $attrs2, $nsup1, $nsup2) = @_;
 
        for my $attr1 ($attrs1->getValues) {
-               my $name = $attr->getName;
+               my $name = $attr1->getName;
                next if ($name =~ /^xmlns:(.*)$/);
                
                my ($nsuri1, undef, $lname1) = $nsup1->process_attribute_name($n1->getName);