Closed adam-nielsen closed 8 years ago
I just checked the ECMA 376 standard and builtinId is optional for styles. I was assuming that every style would have one. I'll make a quick fix for that. Here's the relevant part of the standard by the way:
<xsd:complexType name="CT_CellStyle">
<xsd:sequence>
<xsd:element name="extLst" type="CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="s:ST_Xstring" use="optional"/>
<xsd:attribute name="xfId" type="ST_CellStyleXfId" use="required"/>
<xsd:attribute name="builtinId" type="xsd:unsignedInt" use="optional"/>
<xsd:attribute name="iLevel" type="xsd:unsignedInt" use="optional"/>
<xsd:attribute name="hidden" type="xsd:boolean" use="optional"/>
<xsd:attribute name="customBuiltin" type="xsd:boolean" use="optional"/>
</xsd:complexType>
Many thanks! That fixed the issue.
Just found this error using the latest xlnt code. Not sure whether the XML parser is being overly strict or what. The .xlsx file in question was produced with Excel.
Any ideas what the issue is and whether it can be fixed? Thanks as usual!