* fix: use AttributeNS thing correctly, pass autoxml tests

This commit is contained in:
Eray Özkural
2005-11-10 01:40:19 +00:00
parent a60b75af86
commit 359d3318bc
+2 -1
View File
@@ -87,7 +87,8 @@ class LocalText(dict):
self.tag )
else:
for node in nodes:
lang = getNodeAttribute(node, "xml:lang")
#lang = getNodeAttribute(node, "xml:lang")
lang = node.getAttributeNS(XML_NS, 'lang')
c = getNodeText(node)
if not c:
errs.append(where + _("'%s' language of tag '%s' is empty") %