Commit 92d69699 authored by haroldcb's avatar haroldcb

correction problème liens tableaux

parent df09e3ff
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
<xsl:number level="any" count="table"/> <xsl:number level="any" count="table"/>
</xsl:variable> </xsl:variable>
<object type="application/vnd.oasis.opendocument.spreadsheet" data="tables/table{$tableId}.ods"> <object type="application/vnd.oasis.opendocument.spreadsheet" data="tables/table{$tableId}.ods">
<xsl:result-document href="tables/table{$tableId}.ods" method="html" encoding="UTF-8"> <xsl:result-document href="tables/table{$tableId}.ods" method="html" encoding="utf-8">
<xsl:element name="table"> <xsl:element name="table">
<xsl:copy-of select="@*|node()"></xsl:copy-of> <xsl:copy-of select="@*|node()"></xsl:copy-of>
</xsl:element> </xsl:element>
...@@ -361,6 +361,8 @@ ...@@ -361,6 +361,8 @@
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="a[@class='image']" mode="table"/>
<xsl:template match="b" mode="table" priority="1"> <xsl:template match="b" mode="table" priority="1">
<!-- b is not allowed, however em is allowed: replacing all b by em --> <!-- b is not allowed, however em is allowed: replacing all b by em -->
<xsl:element name="em" namespace="http://www.utc.fr/ics/hdoc/xhtml"> <xsl:element name="em" namespace="http://www.utc.fr/ics/hdoc/xhtml">
...@@ -368,6 +370,8 @@ ...@@ -368,6 +370,8 @@
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
<xsl:template match="td/span[contains(@class, 'mw-edit')]" mode="table"/>
<!-- Balises pour les abbréviations --> <!-- Balises pour les abbréviations -->
<xsl:template match="abbr" mode="table" priority="1"> <xsl:template match="abbr" mode="table" priority="1">
<xsl:apply-templates select="node()" mode="textOnly"/> <xsl:apply-templates select="node()" mode="textOnly"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment