Am .09.2016, 12:32 Uhr, schrieb <
matthe...@gmail.com>:
> Crikey - thanks for the quick reply! Test file attached. In the meantime,
> I'll check the Bitbucket Issue. Thanks.
Yes, it is the same problem and as far as I can understand, this is a bug
in LibreOffice. This is from the styles.xml:
<cellStyleXfs count="6">
<xf borderId="0" fillId="0" fontId="0" numFmtId="0"/>
<xf borderId="0" fillId="0" fontId="0" numFmtId="0"/>
<xf borderId="0" fillId="0" fontId="0" numFmtId="0"/>
<xf borderId="0" fillId="0" fontId="0" numFmtId="0"/>
<xf borderId="0" fillId="0" fontId="0" numFmtId="0"/>
<xf borderId="0" fillId="0" fontId="0" numFmtId="0"/>
</cellStyleXfs>
<cellXfs count="3">
<xf applyAlignment="1" borderId="0" fillId="0" fontId="0"
numFmtId="164" pivotButton="0" quotePrefix="0" xfId="0">
<alignment horizontal="general" vertical="bottom"/>
</xf>
<xf applyAlignment="1" borderId="0" fillId="0" fontId="0"
numFmtId="164" pivotButton="0" quotePrefix="0" xfId="0">
<alignment horizontal="general" vertical="bottom"/>
</xf>
<xf borderId="0" fillId="0" fontId="0" numFmtId="0" pivotButton="0"
quotePrefix="0" xfId="0"/>
</cellXfs>
<cellStyles count="6">
<cellStyle builtinId="0" name="Normal" xfId="0"/>
<cellStyle builtinId="3" name="Comma" xfId="15"/>
<cellStyle builtinId="6" name="Comma [0]" xfId="16"/>
<cellStyle builtinId="4" name="Currency" xfId="17"/>
<cellStyle builtinId="7" name="Currency [0]" xfId="18"/>
<cellStyle builtinId="5" name="Percent" xfId="19"/>
</cellStyles>
The cellStyle elements are the names of the cellStyleXfs and the xfId
should be a pointer to the relevant xf element. The specification says:
"""
Zero-based index referencing an xf record in the cellStyleXfs collection.
This is used to determine the formatting defined for this named cell style.
"""
But if we only have 6 cellStyleXfs, how can we have indices from 15:19?
Excel doesn't seem to like the file either. I do have a question about
this open with the OOXML Working Group but it does look increasingly like
a LibreOffice bug, and quite a serious one. However, as the XML is
formally correct it's impossible to detect the problem by trying to
validate the file.