From daba85d742b85377af4e50abf826a6cc7c63a6bb Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Thu, 30 Mar 2006 23:47:16 +0000 Subject: [PATCH] M c14n.py -- go thru the parent/etc attributes first, then the current nodes, then the current node's namespace nodes will override parent ones. --- c14n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c14n.py b/c14n.py index 9817ed7..33305bf 100755 --- a/c14n.py +++ b/c14n.py @@ -315,7 +315,7 @@ class _implementation: # Divide attributes into NS, XML, and others. other_attrs = [] in_subset = _in_subset(self.subset, node) - for a in _attrs(node) + initial_other_attrs: + for a in initial_other_attrs + _attrs(node): if a.namespaceURI == XMLNS.BASE: n = a.nodeName if n == "xmlns:": n = "xmlns" # DOM bug workaround