]> git.sesse.net Git - xml-template/commitdiff
Add a (failing) perl-sax/attribute test.
authorsgunderson@bigfoot.com <>
Thu, 1 Mar 2007 12:39:57 +0000 (13:39 +0100)
committersgunderson@bigfoot.com <>
Thu, 1 Mar 2007 12:39:57 +0000 (13:39 +0100)
perl-sax/attribute.pl [new file with mode: 0644]

diff --git a/perl-sax/attribute.pl b/perl-sax/attribute.pl
new file mode 100644 (file)
index 0000000..544b363
--- /dev/null
@@ -0,0 +1,13 @@
+#! /usr/bin/perl
+use XML::TemplateSAX;
+
+my $doc = XML::TemplateSAX::process_file('../xml/clone.xml', {
+       'color' => 'red',
+       '#things' => [
+               { 'li' => 'Raindrops on roses',    'li/class' => 'odd' },
+               { 'li' => 'Whiskers on kittens',   'li/class' => 'even' },
+               { 'li' => 'Bright copper kettles', 'li/class' => 'odd' },
+               { 'li' => 'Warm, woolen mittens',  'li/class' => 'even' }
+       ]
+});
+print $doc;