diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-03-12 08:34:35 -0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-03-14 09:51:48 +0100 |
commit | 770c0c1746b5c0b94dc07d5f1d6c2c04802c8540 (patch) | |
tree | 3634144a257a554182a331a72d66c47ee3a2344b /help3xsl/get_bookmark.xsl | |
parent | 05d4e9fb471224b6adbc174ecb7968ffa29d4a56 (diff) |
tdf#116296 remove produt version from help path
Part two.
Part 1 is in sfx2 module
Remove product version from offline help path but keep
in online help.
Product version is kept for online because a help server can have more
than one helponline version.
Change-Id: I1d4ba12a7d6472defd4210c79349e35ccaf32d8d
Reviewed-on: https://gerrit.libreoffice.org/51126
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'help3xsl/get_bookmark.xsl')
-rw-r--r-- | help3xsl/get_bookmark.xsl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/help3xsl/get_bookmark.xsl b/help3xsl/get_bookmark.xsl index 3614d4cbed..5c0bc8cff0 100644 --- a/help3xsl/get_bookmark.xsl +++ b/help3xsl/get_bookmark.xsl @@ -16,11 +16,19 @@ xsltproc get_bookmark.xsl <file.xhp> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="app"/> +<xsl:param name="local"/> <xsl:param name="Language"/> <xsl:param name="productname" select="'LibreOffice'"/> <xsl:param name="productversion"/> <xsl:output indent="yes" method="text"/> +<xsl:variable name="online" select="$local!='yes'"/> +<xsl:variable name="target"> + <xsl:choose> + <xsl:when test="$online"><xsl:value-of select="concat($productversion,'/')"/></xsl:when> + <xsl:otherwise><xsl:value-of select="''"/></xsl:otherwise> + </xsl:choose> +</xsl:variable> <!-- ############################ @@ -53,7 +61,7 @@ xsltproc get_bookmark.xsl <file.xhp> <xsl:template match="/"> <xsl:for-each select="//bookmark[@branch='index']"> <xsl:variable name="hrefhtml" select="substring-before($filename,'xhp')"/> - <xsl:variable name="href" select="concat($productversion,'/',$Language,'/',$hrefhtml,'html?DbPAR=',$app,'#',@id)"/> + <xsl:variable name="href" select="concat($target,$Language,'/',$hrefhtml,'html?DbPAR=',$app,'#',@id)"/> <xsl:for-each select="bookmark_value"> <xsl:text disable-output-escaping="yes"><![CDATA[<a target="_top" href="]]></xsl:text> <xsl:value-of select="$href"/> |