help3xsl/online_transform.xsl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit af81c959ae17b1036f3d0d9977efc50bb4befc59 Author: Olivier Hallot <olivier.hal...@libreoffice.org> AuthorDate: Fri May 12 11:51:56 2023 -0300 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Sat May 13 15:58:01 2023 +0200 Fix and embedvar issue Place a target at variable location but remove the target at embed position. This allows embedvar inside the same help file. + Remove cruft from very old OO help Change-Id: I2c6cb885fb5457b1a93ccd4d821f2baaa9ff3620 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151726 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index c398e97a5e..856dccbde0 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -734,7 +734,7 @@ <!-- VARIABLE --> <xsl:template match="variable"><a name="{@id}"></a><xsl:apply-templates /></xsl:template> -<xsl:template match="variable" mode="embedded"><a name="{@id}"></a><xsl:apply-templates mode="embedded"/></xsl:template> +<xsl:template match="variable" mode="embedded"><xsl:apply-templates mode="embedded"/></xsl:template> <xsl:template match="text()"> <xsl:call-template name="brand"> @@ -1410,7 +1410,6 @@ </xsl:template> <xsl:template name="resolveembedvar"> - <xsl:variable name="archive"><xsl:value-of select="concat(substring-before(substring-after(@href,'text/'),'/'),'/')"/></xsl:variable> <xsl:variable name="href"><xsl:value-of select="concat($urlpre,substring-before(@href,'#'))"/></xsl:variable> <xsl:variable name="anchor"><xsl:value-of select="substring-after(@href,'#')"/></xsl:variable> <xsl:variable name="doc" select="document($href)"/>