From 3c1a79fbf2259288d222726df9810f2caf959a86 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Thu, 1 Mar 2007 13:39:57 +0100 Subject: [PATCH] Add a (failing) perl-sax/attribute test. --- perl-sax/attribute.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 perl-sax/attribute.pl diff --git a/perl-sax/attribute.pl b/perl-sax/attribute.pl new file mode 100644 index 0000000..544b363 --- /dev/null +++ b/perl-sax/attribute.pl @@ -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; -- 2.39.2