This is an automated email from the ASF dual-hosted git repository.

damjan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 50f8b0f2cf Allowing exporting ODF < 1.2 formulas to Excel 2003 XML too.
50f8b0f2cf is described below

commit 50f8b0f2cfecde16fe43969c61fd11a54f6ff30c
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
---
 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 b33afbab7e..de271a16a3 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>

Reply via email to