This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch AOO42X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 51733d5b8a515f1016f8319b03ad3947c008a473 Author: Damjan Jovanovic <[email protected]> AuthorDate: Sat Nov 22 11:13:27 2025 +0200 Allowing exporting ODF < 1.2 formulas to Excel 2003 XML too. Patch by: me (cherry picked from commit 50f8b0f2cfecde16fe43969c61fd11a54f6ff30c) --- main/filter/source/xslt/export/spreadsheetml/formular.xsl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main/filter/source/xslt/export/spreadsheetml/formular.xsl b/main/filter/source/xslt/export/spreadsheetml/formular.xsl index 7243b27bde..8342a5b75c 100644 --- a/main/filter/source/xslt/export/spreadsheetml/formular.xsl +++ b/main/filter/source/xslt/export/spreadsheetml/formular.xsl @@ -87,7 +87,7 @@ <xsl:choose> <!-- OASIS Open Document XML formular expressions --> <xsl:when test="starts-with($expression,'of:')"> - <!-- giving out the '=', which will be removed with 'of:=' to enable recursive string parsing --> + <!-- ODF >= 1.2: giving out the '=', which will be removed with 'of:=' to enable recursive string parsing --> <xsl:text>=</xsl:text> <xsl:call-template name="function-parameter-mapping"> <xsl:with-param name="rowPos" select="$rowPos" /> @@ -96,6 +96,16 @@ <xsl:with-param name="expression" select="translate(substring($expression,5),';',',')"/> </xsl:call-template> </xsl:when> + <xsl:when test="starts-with($expression,'oooc:')"> + <!-- ODF < 1.2: giving out the '=', which will be removed with 'oooc:=' to enable recursive string parsing --> + <xsl:text>=</xsl:text> + <xsl:call-template name="function-parameter-mapping"> + <xsl:with-param name="rowPos" select="$rowPos" /> + <xsl:with-param name="columnPos" select="$columnPos" /> + <!-- 1) remove 'oooc:=' prefix and exchange ';' with ',' --> + <xsl:with-param name="expression" select="translate(substring($expression,7),';',',')"/> + </xsl:call-template> + </xsl:when> <xsl:otherwise> <xsl:value-of select="$expression" /> </xsl:otherwise>
