X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=python%2Fattribute2.py;h=4f25464b6e17932e62a426deda6cc783cfeb394c;hb=eb5498b74048d0ae51ace918e4d06fcc12264ec4;hp=d7caca62fd92024eac110f7fa0f49f6603e9a704;hpb=e5976d9f22b2579cf679ab8aeba79fd107c9b48a;p=xml-template diff --git a/python/attribute2.py b/python/attribute2.py index d7caca6..4f25464 100644 --- a/python/attribute2.py +++ b/python/attribute2.py @@ -3,11 +3,11 @@ import xmltemplate doc = xmltemplate.process_file("../xml/clone.xml", { "color": "blue", - "#things": xmltemplate.alternate("li/class", ( + "#things": xmltemplate.alternate("li/class", [ { "li": "Raindrops on roses" }, { "li": "Whiskers on kittens" }, { "li": "Bright copper kettles" }, { "li": "Warm, woolen mittens"}, - ), "odd", "even") + ], "odd", "even") }); print doc.toxml()