[yelp-xsl] mal-link: Fix missing link when group specified twice on topic links



commit 9b88f3309a1104e287a8ddf3601c170ccb2f720d
Author: Shaun McCance <shaunm redhat com>
Date:   Wed Feb 19 18:30:51 2020 -0500

    mal-link: Fix missing link when group specified twice on topic links

 xslt/mallard/common/mal-link.xsl | 6 ++++--
 1 file 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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]