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

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