diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-26 17:51:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-26 17:51:24 +0100 |
commit | f5174c89cd037d35b975590083cf91b36633808d (patch) | |
tree | 02fca5ff738eff40ccc7eac15e052af52147f82f | |
parent | beb20a4f37ca418c7a643c9e3f41961985936d56 (diff) |
...but do not erase localize attributes from image elements
...as these are used in xmlhelp/util/main_transform.xsl at runtime
Change-Id: I097cb79f660386d7fa2d97e7115f689a1e442fe2
-rw-r--r-- | xmlhelp/util/compact.xsl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmlhelp/util/compact.xsl b/xmlhelp/util/compact.xsl index 457c955e2a23..3b557fb90700 100644 --- a/xmlhelp/util/compact.xsl +++ b/xmlhelp/util/compact.xsl @@ -24,6 +24,11 @@ <!-- To remove attributes or nodes, simply write a matching template that doesn't do anything. Therefore, it is removed --> + <xsl:template match="image/@localize"> + <xsl:copy> + <xsl:apply-templates select="@*[normalize-space()]|node()|text()"/> + </xsl:copy> + </xsl:template> <xsl:template match="@localize"/> <xsl:template match="@xml-lang"/> <xsl:template match="alt"/> |