diff options
author | Shaun McCance <shaunm@gnome.org> | 2012-04-23 09:33:08 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2012-04-23 09:33:08 -0400 |
commit | 26056147bb22a8d7c705deb939adc256a70353e9 (patch) | |
tree | 567582e482e25f73102ae9c0b7d8710371a7b713 | |
parent | 7aef423f7282dff38368384d463078cc44f28c6d (diff) | |
download | yelp-xsl-26056147bb22a8d7c705deb939adc256a70353e9.tar.gz |
mal2html-block: Fix if:if for maybe values
-rw-r--r-- | xslt/mallard/html/mal2html-block.xsl | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/xslt/mallard/html/mal2html-block.xsl b/xslt/mallard/html/mal2html-block.xsl index 4626899a..95e38755 100644 --- a/xslt/mallard/html/mal2html-block.xsl +++ b/xslt/mallard/html/mal2html-block.xsl @@ -579,8 +579,17 @@ in accordance with the Mallard specification on fallback block content. <xsl:variable name="if"> <xsl:call-template name="mal.if.test"/> </xsl:variable> - <xsl:if test="$if = 'true'"> - <xsl:apply-templates mode="mal2html.block.mode"/> + <xsl:if test="$if != ''"> + <xsl:choose> + <xsl:when test="$if != 'true'"> + <div class="if-if {$if}"> + <xsl:apply-templates mode="mal2html.block.mode"/> + </div> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates mode="mal2html.block.mode"/> + </xsl:otherwise> + </xsl:choose> </xsl:if> </xsl:template> |