summaryrefslogtreecommitdiffstats
path: root/help3xsl/online_transform.xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-07-21 11:08:23 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-07-22 13:15:28 +0200
commit6f19b002ecde744916b4e7276dd5f35b95f5dab8 (patch)
treecffba20c840c17366f156588386a1b5d115995e9 /help3xsl/online_transform.xsl
parenttdf#115254 Some branch bookmarks are not working 6 (diff)
downloadhelp-6f19b002ecde744916b4e7276dd5f35b95f5dab8.tar.gz
help-6f19b002ecde744916b4e7276dd5f35b95f5dab8.zip
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.xsl8
1 files changed, 7 insertions, 1 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 889982fda3..8ad8426692 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)"/>