Commit c2bd6594 authored by Guido van Rossum's avatar Guido van Rossum

Add another exception to work around xmlns issues.

parent dedc85b5
...@@ -176,6 +176,8 @@ class METALCompiler(DOMVisitor): ...@@ -176,6 +176,8 @@ class METALCompiler(DOMVisitor):
# Add namespace declarations for each attribute # Add namespace declarations for each attribute
for attr in node.attributes.values(): for attr in node.attributes.values():
if attr.namespaceURI: if attr.namespaceURI:
if not attr.prefix:
continue
if self.newNS(attr.prefix, attr.namespaceURI): if self.newNS(attr.prefix, attr.namespaceURI):
if attr.prefix == "xmlns": if attr.prefix == "xmlns":
continue continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment