Good afternoon!
I faced strange results converting ods table to xml file via xlst:
<xsl:for-each select=“table:table-row[position() > 1]” />
when selecting current row cells by index:
<xsl:value-of select=“table:table-cell[1]/text:p” />
or:
<xsl:value-of select=“table:table-cell[3]/text:p” />
provides wrong indexing of cells in first two rows.
I have no idea where to dig, strange error, tried different cells format (text, number etc), no result.
Please help to resolve.
Libreoffice Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Thank you in advance.
source.ods (14.5 KB)
PS: how to attach xml nd xsl - forum blocks these files?
PPS:
Used following help:
https://stackoverflow.com/questions/32817081/convert-calcexcel-data-in-xml-in-openoffice
PPPS:
Output of wrong xml is:
https://pastebin.com/dvtXbaJx
XSL file to convert:
https://pastebin.com/piAiZdVY