Apache OpenOffice (AOO) Bugzilla – Issue 110762
Merged table cells not supported by docbook import/export
Last modified: 2013-08-07 14:38:26 UTC
Hi. I cannot export a table in odt format to docbook. Attaching the odt file.
Created attachment 68850 [details] Table Test
Created attachment 68851 [details] Bogus Export to docbook
Please detail: - your system - your OOo version - what you understand with "doesn't work", "bogus", "cannot export"
Sorry for my initial post, it was indeed lacking informations. I am working on a debian/stable (5.0.4) system. Using openoffice 3.2: $ apt-cache policy openoffice.org openoffice.org: Installed: 1:3.2.0-4~bpo50+1 Candidate: 1:3.2.0-4~bpo50+1 The docbook file after export does contains most information, however one can notice that the third row does not display properly. It contains: <row> <entry> <para>Clinical Trial Subject</para> </entry> <entry> <para>C.7.1.3</para> </entry> <entry> <para>U</para> </entry> </row> while it should be more like: <row> <entry> <para/> </entry> <entry> <para>Clinical Trial Subject</para> </entry> <entry> <para>C.7.1.3</para> </entry> <entry> <para>U</para> </entry> </row> I am not a docbook expert, so there might be other tricks for a row to contains only 3 entry elements, but the table layout should describe this layout. Hoping to be clear this time. Thanks !
@SUS: I couldn't find a spec for our docbook export. Please evaluate if bug or unsupported feature.
Created attachment 68901 [details] Proposed Fixed Docbook Export
Looking into docbook details. It appears the proper fix for this is: <row> <entry morerows="1"> <para>Patient</para> </entry> <entry> <para>Patient </para> </entry> <entry> <para>C.7.1.1</para> </entry> <entry> <para>M</para> </entry> </row> Ref: http://www.docbook.org/tdg/en/html/entry.html
Here is the local patch I am using: $ cat /usr/lib/openoffice/basis3.1/share/xslt/docbook/sofftodocbookheadings.xsl ... <xsl:template match="table:table-cell"> <xsl:element name="entry"> <xsl:if test="@table:number-rows-spanned >'1'"> <xsl:attribute name="morerows"> <xsl:value-of select="number(@table:number-rows-spanned)-1"/> </xsl:attribute> </xsl:if>
*** Issue 110847 has been marked as a duplicate of this issue. ***
Since issue 110847 has been marked as duplicate, the title should be changed from: Merged table cells not supported by docbook export into Merged table cells not supported by docbook import/export