diff options
author | Shaun McCance <shaunm@gnome.org> | 2014-01-30 16:42:24 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2014-02-03 16:11:56 -0500 |
commit | d1c53ad780d9ac4e3eb7532fd1877d8a13540eec (patch) | |
tree | 411fa85b919133743b1cbc41100a39c91b932905 /xslt | |
parent | d15b4eb1a3ec25f1d0316c345c4b6d64748b92b5 (diff) | |
download | yelp-xsl-d1c53ad780d9ac4e3eb7532fd1877d8a13540eec.tar.gz |
mal2html-page: Support "hidden" style hint on page/section titles
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/mallard/html/mal2html-page.xsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl index cb307537..5a9f1113 100644 --- a/xslt/mallard/html/mal2html-page.xsl +++ b/xslt/mallard/html/mal2html-page.xsl @@ -835,6 +835,7 @@ direct child content of #{page} or #{section} elements. Normal block titles are processed in %{mal2html.block.mode}. --> <xsl:template mode="mal2html.title.mode" match="mal:title | mal:subtitle"> + <xsl:if test="not(contains(concat(' ', @style, ' '), ' hidden '))"> <xsl:variable name="depth" select="count(ancestor::mal:section) + 1 + boolean(self::mal:subtitle)"/> <xsl:variable name="depth_"> @@ -855,6 +856,7 @@ are processed in %{mal2html.block.mode}. <xsl:apply-templates mode="mal2html.inline.mode"/> </span> </xsl:element> + </xsl:if> </xsl:template> <!--%# html.css.mode --> |