]> git.sesse.net Git - xml-template/commitdiff
Simplify the attribute-empty.{pl,py} test cases a bit.
authorsgunderson@bigfoot.com <>
Wed, 4 Oct 2006 01:00:45 +0000 (03:00 +0200)
committersgunderson@bigfoot.com <>
Wed, 4 Oct 2006 01:00:45 +0000 (03:00 +0200)
perl/attribute-empty.pl
python/attribute-empty.py

index 2183a405255f9d9c99cdfc402d33361649451c54..f1fbc30cd0206734f5df8ad8d5c2e68f6d1aadb8 100644 (file)
@@ -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;
index 210bc0e7041d0baf2357c670f6d540c2a408a50a..fed55b5f6513e0fa498749c1491f38738bf4cf66 100644 (file)
@@ -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()