diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-17 01:05:56 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-17 01:05:56 +0100 |
commit | be4c3810ad560402a6ccee8b2c7eabbe71497989 (patch) | |
tree | 937d9967f54d783df943b6f6dfb7a919d34c4d31 | |
parent | ee77204a2bdde97080c7f12b715f5496ca7fb342 (diff) | |
download | Ishtar-be4c3810ad560402a6ccee8b2c7eabbe71497989.tar.bz2 Ishtar-be4c3810ad560402a6ccee8b2c7eabbe71497989.zip |
XHTML to ODT: put table caption on top
-rw-r--r-- | xhtml2odt/xsl/document-content/tables.xsl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/xhtml2odt/xsl/document-content/tables.xsl b/xhtml2odt/xsl/document-content/tables.xsl index a063f6bfd..f17354455 100644 --- a/xhtml2odt/xsl/document-content/tables.xsl +++ b/xhtml2odt/xsl/document-content/tables.xsl @@ -57,16 +57,6 @@ </xsl:template> <xsl:template match="h:table"> - <table:table table:style-name="table-default"> - <table:table-column> - <xsl:attribute name="table:number-columns-repeated"> - <xsl:value-of select="count(descendant::h:tr[1]/h:th|descendant::h:tr[1]/h:td)"/> - </xsl:attribute> - </table:table-column> - <!--<xsl:attribute name="table:name"></xsl:attribute>--> - <xsl:apply-templates/> - <xsl:apply-templates select="h:tfoot/*"/> - </table:table> <xsl:if test="h:caption"> <xsl:variable name="number"> <xsl:call-template name="table.number"/> @@ -80,6 +70,16 @@ <xsl:text>: </xsl:text><xsl:value-of select="h:caption"/> </text:p> </xsl:if> + <table:table table:style-name="table-default"> + <table:table-column> + <xsl:attribute name="table:number-columns-repeated"> + <xsl:value-of select="count(descendant::h:tr[1]/h:th|descendant::h:tr[1]/h:td)"/> + </xsl:attribute> + </table:table-column> + <!--<xsl:attribute name="table:name"></xsl:attribute>--> + <xsl:apply-templates/> + <xsl:apply-templates select="h:tfoot/*"/> + </table:table> </xsl:template> <xsl:template match="h:table/h:caption"/> |