[yelp-xsl] mal2html-links: Also fix section links for stacks



commit cef8f0c8b0783abf98ba8a7c614d3254eda76ef6
Author: Shaun McCance <shaunm redhat com>
Date:   Thu Oct 14 15:17:35 2021 -0400

    mal2html-links: Also fix section links for stacks

 xslt/mallard/html/mal2html-links.xsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl
index a5dc1e6a..ce851f4a 100644
--- a/xslt/mallard/html/mal2html-links.xsl
+++ b/xslt/mallard/html/mal2html-links.xsl
@@ -632,7 +632,7 @@ element containing $node.
     <xsl:for-each select="$node/mal:section">
       <xsl:call-template name="mal2html.links.ul.li">
         <xsl:with-param name="node" select="$node"/>
-        <xsl:with-param name="xref" select="concat(/mal:page/@id, '#', @id)"/>
+        <xsl:with-param name="xref" select="concat(ancestor::mal:page[1]/@id, '#', @id)"/>
         <xsl:with-param name="role" select="concat($role, ' section')"/>
         <xsl:with-param name="nodesc" select="$nodesc"/>
       </xsl:call-template>


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