diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-07-21 11:08:23 -0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-08-07 17:58:33 +0200 |
commit | bb7d1128280761518238480b4ee355cb5c017608 (patch) | |
tree | 5ef63cf7d470790e2fd7119314273253eccff453 /help3xsl/online_transform.xsl | |
parent | 31a0e9aef9994b8e3d0611fc59123a1f721078a7 (diff) |
tdf#118844 Add missing icons in Help pages
Apply strategy #1 described in tdf#118844 comment #3
Change-Id: I072bf837217acc8dc84ff1104324df69e33a22bd
Reviewed-on: https://gerrit.libreoffice.org/57801
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 3c35f90ab9..ef2c79761e 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -22,6 +22,7 @@ <xsl:output indent="yes" method="html" doctype-system= "about:legacy-compat"/> <xsl:include href="localized.xsl"/> +<xsl:include href="link.txt.xsl"/> <!-- ############################ # Variables and Parameters # @@ -1073,11 +1074,16 @@ </xsl:otherwise> </xsl:choose> </xsl:when> + <!-- generic media file --> <xsl:when test="starts-with(@src,'media/')"> <xsl:value-of select="concat($target,@src)"/> </xsl:when> + <!-- handle icons --> <xsl:when test="not(starts-with(@src,'media/'))"> - <xsl:value-of select="concat($target,'media/icon-themes/',@src)"/> + <xsl:variable name="linklist"> + <xsl:call-template name="linktxt"><xsl:with-param name="src1" select="@src"/></xsl:call-template> + </xsl:variable> + <xsl:value-of select="concat($target,'media/icon-themes/',$linklist)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($target,@src)"/> |