summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2023-03-14 10:56:04 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2023-03-14 14:21:41 +0000
commit87d52df5836c4fe06e186b289c937be47d9ded53 (patch)
tree8e0abf87c8cf049ba9f5630e109b0d861aab3af7
parent5e8ed765cc8c502f1272c191c0a1a4f82d505e57 (diff)
Improvement in refactoring XSLT
Change-Id: I91f3dce118e4a66d697f844f7f78897748c17a95 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148880 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--helpers/refactor.xsl12
1 files changed, 2 insertions, 10 deletions
diff --git a/helpers/refactor.xsl b/helpers/refactor.xsl
index 5f3c4fc943..7b6a1be85d 100644
--- a/helpers/refactor.xsl
+++ b/helpers/refactor.xsl
@@ -16,16 +16,8 @@
</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="@colspan[//tablecell/@colspan='']" />
+<xsl:template match="@rowspan[//tablecell/@rowspan='']" />
<xsl:template match="node()|@*">
<xsl:copy>