helpers/refactor.xsl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
New commits: commit 87d52df5836c4fe06e186b289c937be47d9ded53 Author: Olivier Hallot <[email protected]> AuthorDate: Tue Mar 14 10:56:04 2023 -0300 Commit: Olivier Hallot <[email protected]> CommitDate: Tue Mar 14 14:21:41 2023 +0000 Improvement in refactoring XSLT Change-Id: I91f3dce118e4a66d697f844f7f78897748c17a95 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148880 Tested-by: Jenkins Reviewed-by: Olivier Hallot <[email protected]> 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>
