diff --git a/os_doc_tools/handle_pot.py b/os_doc_tools/handle_pot.py index 1f00ae8a..70abc2c5 100644 --- a/os_doc_tools/handle_pot.py +++ b/os_doc_tools/handle_pot.py @@ -148,12 +148,10 @@ def changeXMLLangSetting(xmlFile, language): root.setAttribute("xml:lang", language[:2]) fileObj = codecs.open(xmlFile, "wb", encoding="utf-8") - # add namespace to link nodelists = root.getElementsByTagName("link") for node in nodelists: if node.hasAttribute("href"): node.setAttribute("xlink:href", node.getAttribute("href")) - node.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink") if node.hasAttribute("title"): node.setAttribute("xlink:title", node.getAttribute("title")) dom.writexml(fileObj)