source/online_transform.xsl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
New commits: commit bd033eb897b7c43f1f6e8c35cc50d4a73ace84af Author: Olivier Hallot <olivier.hal...@libreoffice.org> Date: Wed Jun 14 11:08:36 2017 -0300 Help content n browser (iv) clean xslt cruft Change-Id: Icbcde2c6d40019ea6a14a05dd41b248397fc3c33 Reviewed-on: https://gerrit.libreoffice.org/39226 Reviewed-by: Olivier Hallot <olivier.hal...@edx.srv.br> Tested-by: Olivier Hallot <olivier.hal...@edx.srv.br> diff --git a/source/online_transform.xsl b/source/online_transform.xsl index f4f9246e1..f73642db8 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> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits