summaryrefslogtreecommitdiff
path: root/help3xsl/get_tree.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'help3xsl/get_tree.xsl')
-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>