diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2023-05-12 11:51:56 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2023-05-13 15:58:01 +0200 |
commit | af81c959ae17b1036f3d0d9977efc50bb4befc59 (patch) | |
tree | 6eb1a9eb0336a93468dbd960c11dae61591142b7 /help3xsl | |
parent | 33d810532f97b4ac171d189c5118b4a3451a0df3 (diff) |
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.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 3 |
1 files changed, 1 insertions, 2 deletions
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)"/> |