text:level is for numbered lists, text:outline-level is for headings.
Found by validating sample output against ODT Relax-NG schema with "jing".
if (caption != NULL)
{
xmlTextWriterStartElement (odt->content_wtr, _xml("text:h"));
- xmlTextWriterWriteFormatAttribute (odt->content_wtr, _xml("text:level"),
- "%d", 2);
+ xmlTextWriterWriteFormatAttribute (odt->content_wtr,
+ _xml("text:outline-level"), "%d", 2);
xmlTextWriterWriteString (odt->content_wtr,
_xml (table_item_get_caption (item)) );
xmlTextWriterEndElement (odt->content_wtr);