https://bz.apache.org/ooo/show_bug.cgi?id=95312

--- Comment #12 from [email protected] ---
To fix that wrong "ooow" namespace when importing .sxc formulas, just this
patch is required:

---snip---
diff --git a/main/xmloff/source/transform/OOo2Oasis.cxx
b/main/xmloff/source/transform/OOo2Oasis.cxx
index 126535becb..90be61fb8f 100644
--- a/main/xmloff/source/transform/OOo2Oasis.cxx
+++ b/main/xmloff/source/transform/OOo2Oasis.cxx
@@ -887,7 +887,7 @@ static XMLTransformerActionInit
aTableValueTypeActionTable[] =
                   XML_NAMESPACE_OFFICE, XML_STRING_VALUE ),
        ENTRY0( TABLE, STYLE_NAME, XML_ATACTION_ENCODE_STYLE_NAME_REF ),
        ENTRY1( TABLE, FORMULA, XML_ATACTION_ADD_APP_NAMESPACE_PREFIX,
-                                       XML_NAMESPACE_OOOW ),
+                                       XML_NAMESPACE_OF ),
        ENTRY1Q( TABLE, VALIDATION_NAME, XML_ATACTION_RENAME,
                   XML_NAMESPACE_TABLE, XML_CONTENT_VALIDATION_NAME ),
        ENTRY0( TABLE, TOKEN_INVALID, XML_ATACTION_EOT )
---snip---

It was impossibly difficult to find. I largely found it by accident, by
searching case-insensitively for everywhere "formula" is used, and looking for
nearby "ooow".

By the way, XML_NAMESPACE_OOOW is used a large number of times in that file,
and could be wrong in other attributes too.

And we may need to fix this for text:formula and other attributes, not just
this table:formula.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are on the CC list for the issue.

Reply via email to