summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-06-14 11:08:36 -0300
committerOlivier Hallot <olivier.hallot@edx.srv.br>2017-06-25 01:54:29 +0200
commitbd033eb897b7c43f1f6e8c35cc50d4a73ace84af (patch)
tree714a161343701136cfe6b8bf3549694657562e9e
parentbfa3cfb08e182fff0f5b19b5e69c5472ce38327a (diff)
Help content n browser (iv) clean xslt cruft
Change-Id: Icbcde2c6d40019ea6a14a05dd41b248397fc3c33 Reviewed-on: https://gerrit.libreoffice.org/39226 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
-rw-r--r--source/online_transform.xsl12
1 files changed, 2 insertions, 10 deletions
diff --git a/source/online_transform.xsl b/source/online_transform.xsl
index f4f9246e11..f73642db87 100644
--- a/source/online_transform.xsl
+++ b/source/online_transform.xsl
@@ -728,25 +728,17 @@ document.getElementById("bm_system").innerHTML ="System is: "+system;
<!-- Create a link -->
<xsl:template name="createlink">
-<xsl:variable name="archive"><xsl:value-of select="concat(substring-before(substring-after(@href,'text/'),'/'),'/')"/></xsl:variable>
-<xsl:variable name="dbpostfix"><xsl:call-template name="createDBpostfix"><xsl:with-param name="archive" select="$archive"/></xsl:call-template></xsl:variable>
<xsl:choose>
<xsl:when test="starts-with(@href,'http://') or starts-with(@href,'https://')"> <!-- web links -->
<a href="{@href}"><xsl:apply-templates /></a>
</xsl:when>
- <xsl:when test="contains(@href,'#')">
+ <xsl:when test="contains(@href,'#')"> <!-- internal links with bookmark -->
<xsl:variable name="anchor"><xsl:value-of select="concat('#',substring-after(@href,'#'))"/></xsl:variable>
- <!--<xsl:variable name="href"><xsl:value-of select="concat($linkprefix,$archive,substring-before(@href,'#'),$linkpostfix,$dbpostfix,$anchor)"/></xsl:variable>-->
- <!--<xsl:variable name="href"><xsl:value-of select="concat($linkprefix,substring-before(@href,'#'),$linkpostfix,$dbpostfix,$anchor)"/></xsl:variable>-->
<xsl:variable name="href"><xsl:value-of select="concat($linkprefix,substring-before(@href, 'xhp'),'html',$anchor,$linkpostfix)"/></xsl:variable>
<a href="{$href}"><xsl:apply-templates /></a>
</xsl:when>
- <xsl:otherwise>
- <!--<xsl:variable name="href"><xsl:value-of select="concat($linkprefix,$archive,@href,$linkpostfix,$dbpostfix)"/></xsl:variable>-->
- <!--<xsl:variable name="href"><xsl:value-of select="concat($linkprefix,@href,$linkpostfix,$dbpostfix)"/></xsl:variable>-->
-
+ <xsl:otherwise>
<xsl:variable name="href"><xsl:value-of select="concat($linkprefix,substring-before(@href, 'xhp'),'html',$linkpostfix)"/></xsl:variable>
-
<a href="{$href}"><xsl:apply-templates /></a>
</xsl:otherwise>
</xsl:choose>