diff options
author | Shaun McCance <shaunm@redhat.com> | 2020-02-19 18:30:51 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@redhat.com> | 2020-02-19 18:32:28 -0500 |
commit | 9b88f3309a1104e287a8ddf3601c170ccb2f720d (patch) | |
tree | e0da77facf3f449a4c09833226d4004694b9437a | |
parent | c31f6e7ed7b559b01e6bad7e56131bef9c6ef7a6 (diff) | |
download | yelp-xsl-9b88f3309a1104e287a8ddf3601c170ccb2f720d.tar.gz |
mal-link: Fix missing link when group specified twice on topic links
-rw-r--r-- | xslt/mallard/common/mal-link.xsl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xslt/mallard/common/mal-link.xsl b/xslt/mallard/common/mal-link.xsl index 128e248f..48d60b28 100644 --- a/xslt/mallard/common/mal-link.xsl +++ b/xslt/mallard/common/mal-link.xsl @@ -961,12 +961,13 @@ The output is a result tree fragment. To use these results, call <xsl:for-each select="$groupslist"> <xsl:if test="string(.) = $link/@group"> <xsl:value-of select="position()"/> + <xsl:text> </xsl:text> </xsl:if> </xsl:for-each> </xsl:if> </xsl:variable> <xsl:variable name="groupsort"> - <xsl:value-of select="$grouppos"/> + <xsl:value-of select="substring-before($grouppos, ' ')"/> <xsl:if test="string($grouppos) = ''"> <xsl:value-of select="$defaultpos"/> </xsl:if> @@ -1049,12 +1050,13 @@ The output is a result tree fragment. To use these results, call <xsl:for-each select="$groupslist"> <xsl:if test="string(.) = $link/@group"> <xsl:value-of select="position()"/> + <xsl:text> </xsl:text> </xsl:if> </xsl:for-each> </xsl:if> </xsl:variable> <xsl:variable name="groupsort"> - <xsl:value-of select="$grouppos"/> + <xsl:value-of select="substring-before($grouppos, ' ')"/> <xsl:if test="string($grouppos) = ''"> <xsl:value-of select="$defaultpos"/> </xsl:if> |