diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/mallard/common/mal-link.xsl | 2 | ||||
-rw-r--r-- | xslt/mallard/html/mal2html-inline.xsl | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/xslt/mallard/common/mal-link.xsl b/xslt/mallard/common/mal-link.xsl index 50f7e8c..1a77439 100644 --- a/xslt/mallard/common/mal-link.xsl +++ b/xslt/mallard/common/mal-link.xsl @@ -83,7 +83,7 @@ $role: A link role, used to select the appropriate title <xsl:variable name="titles" select="key('mal.cache.key', $fullid) /mal:info/mal:title[@type = 'link']"/> <xsl:choose> - <xsl:when test="$role != '' and $titles[@role = 'guide']"> + <xsl:when test="$role != '' and $titles[@role = $role]"> <xsl:apply-templates mode="mal.link.content.mode" select="$titles[@role = $role][1]/node()"/> </xsl:when> diff --git a/xslt/mallard/html/mal2html-inline.xsl b/xslt/mallard/html/mal2html-inline.xsl index b29166e..547402f 100644 --- a/xslt/mallard/html/mal2html-inline.xsl +++ b/xslt/mallard/html/mal2html-inline.xsl @@ -207,7 +207,9 @@ REMARK: Document this template <xsl:apply-templates mode="mal2html.inline.mode"/> </xsl:when> <xsl:otherwise> - <xsl:call-template name="mal.link.content"/> + <xsl:call-template name="mal.link.content"> + <xsl:with-param name="role" select="@role"/> + </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> |