X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=python%2Fattribute.py;h=19d60769a24776c137b55fe4111af36f494edc2a;hb=933565bfd7b14e26bf9dbc2afc7271e28ec34398;hp=0127e806be0e9f843133d0ccab127dfd7f32accc;hpb=e5976d9f22b2579cf679ab8aeba79fd107c9b48a;p=xml-template diff --git a/python/attribute.py b/python/attribute.py index 0127e80..19d6076 100644 --- a/python/attribute.py +++ b/python/attribute.py @@ -2,12 +2,12 @@ import xmltemplate doc = xmltemplate.process_file("../xml/clone.xml", { - 'color': 'blue', - '#things': ( - { "li": "Raindrops on roses", "li/class": "even" }, - { "li": "Whiskers on kittens", "li/class": "odd" }, - { "li": "Bright copper kettles", "li/class": "even" }, - { "li": "Warm, woolen mittens", "li/class": "odd" } - ) + '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.toxml()