[yelp-xsl] mal2html-page: Support "hidden" style hint on page/section titles
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-page: Support "hidden" style hint on page/section titles
- Date: Mon, 3 Feb 2014 21:12:17 +0000 (UTC)
commit d1c53ad780d9ac4e3eb7532fd1877d8a13540eec
Author: Shaun McCance <shaunm gnome org>
Date: Thu Jan 30 16:42:24 2014 +0000
mal2html-page: Support "hidden" style hint on page/section titles
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 cb30753..5a9f111 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 -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]