Skip to content
Snippets Groups Projects
Commit e0fc5905 authored by Thorsten Vitt's avatar Thorsten Vitt
Browse files

fixup! Support @ID@ in linkURLPattern

parent 9e2ec047
Branches
Tags
No related merge requests found
...@@ -547,11 +547,14 @@ ...@@ -547,11 +547,14 @@
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
<xsl:attribute name="{$linkAttribute}" namespace="{$linkAttributeNamespace}"> <xsl:attribute name="{$linkAttribute}" namespace="{$linkAttributeNamespace}">
<xsl:sequence select="a:resolve-uri($dest, $linkURLPattern)"/> <xsl:variable name="destWithFrag">
<xsl:if test="contains(@from,'id (')"> <xsl:value-of select="$dest"/>
<xsl:text>#</xsl:text> <xsl:if test="contains(@from,'id (')">
<xsl:value-of select="substring(@from,5,string-length(normalize-space(@from))-1)"/> <xsl:text>#</xsl:text>
</xsl:if> <xsl:value-of select="substring(@from,5,string-length(normalize-space(@from))-1)"/>
</xsl:if>
</xsl:variable>
<xsl:sequence select="a:resolve-uri($destWithFrag, $linkURLPattern)"/>
</xsl:attribute> </xsl:attribute>
<xsl:choose> <xsl:choose>
<xsl:when test="@n"> <xsl:when test="@n">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment