summaryrefslogtreecommitdiff
path: root/help3xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2022-02-11 14:23:29 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2022-02-13 03:30:12 +0100
commitbd2715dfc0b767f9478566d5d0ae58b722c685cb (patch)
tree650700113990ec4f9c6bc7117f7d96cac22feb67 /help3xsl
parentb3a3a1b9968d7735d4fe3c201b52c9a4942f1e09 (diff)
Allow Contents to access targets in Help page
Change-Id: I42f0a0805353608538dc1cb476c5bfccaa707a6d Reviewed-on: https://gerrit.libreoffice.org/c/help/+/129826 Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
Diffstat (limited to 'help3xsl')
-rw-r--r--help3xsl/get_tree.xsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/help3xsl/get_tree.xsl b/help3xsl/get_tree.xsl
index abdb29d3d1..1dd4a64896 100644
--- a/help3xsl/get_tree.xsl
+++ b/help3xsl/get_tree.xsl
@@ -39,8 +39,11 @@ xsltproc get_tree.xsl <file.tree>
</xsl:template>
<xsl:template match="topic">
+ <xsl:variable name="pagetarget">
+ <xsl:value-of select="substring-after(@id,'xhp')"/>
+ </xsl:variable>
<xsl:variable name="htmlpage">
- <xsl:value-of select="concat($lang,'/',substring-before(substring-after(@id,'/'),'.xhp'),'.html','?DbPAR=',$module)" />
+ <xsl:value-of select="concat($lang,'/',substring-before(substring-after(@id,'/'),'.xhp'),'.html','?DbPAR=',$module,$pagetarget)" />
</xsl:variable>
<![CDATA[<li><a target="_top" href="]]><xsl:value-of select="$htmlpage"/><![CDATA[">]]><xsl:call-template name="replace"><xsl:with-param name="text"><xsl:value-of select="."/></xsl:with-param></xsl:call-template><![CDATA[</a></li>\]]>
</xsl:template>