Convert XLSX to MS Excel 2003 XML via command line

How to convert .xlsx to .xml (MS Excel 2003 XML) from command line?

When the following is executed (LibreOffice 7.5):

"C:/Program Files/LibreOffice/program/soffice.bin" --headless --calc --convert-to xml:"MS Excel 2003 XML" "C:/Users/user/Downloads/example_xlsx.xlsx"

the following error is returned:

Error: Please verify input parameters…

I have tried removing --headless & --calc, and tried using other filters, and much more.
Although I am a beginner, I have been able to successfully convert other files from the command line (rtf → pdf, pdf → rtf, etc.).

What am I doing wrong? Has the ability to convert to this particular .xml file been deprecated as suggested here?

I have uploaded a sample .xlsx file.
example_xlsx.xlsx (10.6 KB)
I’m unable to upload a sample .xml file (says unauthorized)

Appreciate any help. Thanks

It also writes (before the error message):

runtime error: file file:///C:/Program%20Files/LibreOffice/share/xslt/export/spreadsheetml/table.xsl line 230 element choose
xsltApplySequenceConstructor: A potential infinite template recursion was detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 3000).
Templates:
#0 name repeat-adding-table-column
#1 name repeat-adding-table-column
#2 name repeat-adding-table-column
#3 name repeat-adding-table-column
#4 name repeat-adding-table-column
#5 name repeat-adding-table-column
#6 name repeat-adding-table-column
#7 name repeat-adding-table-column
#8 name repeat-adding-table-column
#9 name repeat-adding-table-column
#10 name repeat-adding-table-column
#11 name repeat-adding-table-column
#12 name repeat-adding-table-column
#13 name repeat-adding-table-column
#14 name repeat-adding-table-column
Variables:
#0
numberColumnsRepeated
#1
param table-column
#2
numberColumnsRepeated
#3
param table-column
#4
numberColumnsRepeated
#5
param table-column
#6
numberColumnsRepeated
#7
param table-column
#8
numberColumnsRepeated
#9
param table-column
#10
numberColumnsRepeated
#11
param table-column
#12
numberColumnsRepeated
#13
param table-column
#14
numberColumnsRepeated

So no, of course it’s not “the ability to convert to this particular .xml file been deprecated”, just a bug in the XSLT export filter.

1 Like

just a bug in the XSLT export filter

Is that an issue with LO 7.5?