]> git.sesse.net Git - xml-template/commitdiff
In Python substitute, compare on local name, not name.
authorsgunderson@bigfoot.com <>
Wed, 6 Sep 2006 15:51:20 +0000 (17:51 +0200)
committersgunderson@bigfoot.com <>
Wed, 6 Sep 2006 15:51:20 +0000 (17:51 +0200)
python/xmltemplate.py

index edffea78e21f243d07e7e3bb7a944cb8e61a29c5..8f2b9222eab4340ee0866138d3df8ce83f42133c 100644 (file)
@@ -40,7 +40,7 @@ def process(node, obj, clean = True):
                                                child.setAttribute(key.split("/")[1], obj[key])
 
                                        if not processed:
-                                               if key == child.tagName or ((not id is None) and key == "#" + id):
+                                               if key == child.localName or ((not id is None) and key == "#" + id):
                                                        process(child, obj[key], clean)
                                                        processed = True