diff options
-rw-r--r-- | writerfilter/source/ooxml/modelpreprocess.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/writerfilter/source/ooxml/modelpreprocess.py b/writerfilter/source/ooxml/modelpreprocess.py index 11112f58c666..a8f232a3c443 100644 --- a/writerfilter/source/ooxml/modelpreprocess.py +++ b/writerfilter/source/ooxml/modelpreprocess.py @@ -77,12 +77,7 @@ def preprocess(model): if j.localName == "attribute" and not len(j.getAttribute("name")): continue - if j.parentNode.localName == "resource": - # Outside grammar element, don't inherit namespaces defined there. - localNamespaceAliases = defaultNamespaceAliases() - else: - # Inside grammar element. - localNamespaceAliases = grammarNamespaceAliases.copy() + localNamespaceAliases = grammarNamespaceAliases.copy() parseNamespaceAliases(j.parentNode, localNamespaceAliases) parseNamespaceAliases(j, localNamespaceAliases) |