summaryrefslogtreecommitdiff
path: root/helpers/refactor.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/refactor.xsl')
-rw-r--r--helpers/refactor.xsl13
1 files changed, 12 insertions, 1 deletions
diff --git a/helpers/refactor.xsl b/helpers/refactor.xsl
index 16341ca35a..5f3c4fc943 100644
--- a/helpers/refactor.xsl
+++ b/helpers/refactor.xsl
@@ -15,6 +15,18 @@
<xsl:apply-templates/>
</xsl:template>
+<!-- remove colspan="" rowspan="" in tablecell -->
+<xsl:template match="//tablecell[@colspan='' and @rowspan='']">
+<tablecell>
+<xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
+<xsl:if test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:if>
+<xsl:if test="@unit"><xsl:attribute name="unit"><xsl:value-of select="@unit"/></xsl:attribute></xsl:if>
+<xsl:if test="@class"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
+<xsl:if test="@localize"><xsl:attribute name="localize"><xsl:value-of select="@localize"/></xsl:attribute></xsl:if>
+<xsl:apply-templates/>
+</tablecell>
+</xsl:template>
+
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
@@ -57,5 +69,4 @@
<xsl:apply-templates />
</xsl:element>
</xsl:template>
-
</xsl:stylesheet>