Skip to content

Commit

Permalink
Update links for nested links
Browse files Browse the repository at this point in the history
  • Loading branch information
wsalesky committed Dec 18, 2019
1 parent cd129e0 commit b7af636
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions resources/xsl/helper-functions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -500,16 +500,15 @@
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="ref"/>
<xsl:call-template name="ref"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="ref">
<xsl:choose>
<xsl:when test="parent::t:ref or parent::t:ptr"><xsl:apply-templates/></xsl:when>
<xsl:when test="@ref">
<a href="{@ref}">
<xsl:apply-templates/>
</a>
<a href="{@ref}"><xsl:apply-templates/></a>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
Expand Down

1 comment on commit b7af636

@wsalesky
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linked to incorrect issue. See: srophe/bethqatraye#52

Please sign in to comment.