help3xsl/get_tree.xsl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit bd2715dfc0b767f9478566d5d0ae58b722c685cb Author: Olivier Hallot <olivier.hal...@libreoffice.org> AuthorDate: Fri Feb 11 14:23:29 2022 -0300 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Sun Feb 13 03:30:12 2022 +0100 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.l...@gmail.com> diff --git a/help3xsl/get_tree.xsl b/help3xsl/get_tree.xsl index abdb29d3d..1dd4a6489 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>