From 2d0267909d7dcb79165a08aec236a53638dbaf84 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Wed, 4 Oct 2006 03:00:45 +0200 Subject: [PATCH] Simplify the attribute-empty.{pl,py} test cases a bit. --- perl/attribute-empty.pl | 3 +-- python/attribute-empty.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/perl/attribute-empty.pl b/perl/attribute-empty.pl index 2183a40..f1fbc30 100644 --- a/perl/attribute-empty.pl +++ b/perl/attribute-empty.pl @@ -3,7 +3,6 @@ use XML::Template; my $doc = XML::Template::process_file('../xml/clone.xml', { 'color' => 'blue', - '#things' => XML::Template::alternate('li/class', [ - ], 'odd', 'even') + '#things' => [] }); print $doc->toString; diff --git a/python/attribute-empty.py b/python/attribute-empty.py index 210bc0e..fed55b5 100644 --- a/python/attribute-empty.py +++ b/python/attribute-empty.py @@ -3,7 +3,6 @@ import xmltemplate doc = xmltemplate.process_file("../xml/clone.xml", { "color": "blue", - "#things": xmltemplate.alternate("li/class", [ - ], "odd", "even") + "#things": [] }); print doc.toxml() -- 2.39.2