Mercurial > hg > nginx-site
diff xslt/content.xslt @ 497:3309e66c35fb
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 20 Apr 2012 21:24:17 +0000 |
parents | ff41e30fc6ae |
children | 17cabf13efc8 |
line wrap: on
line diff
--- a/xslt/content.xslt Fri Apr 20 21:23:50 2012 +0000 +++ b/xslt/content.xslt Fri Apr 20 21:24:17 2012 +0000 @@ -179,19 +179,44 @@ </li> </xsl:template> - <xsl:template match="list[@type='tag']"> - <dl compact=""> - <xsl:apply-templates/> - </dl> + <xsl:template match="list[@type='tag']"> + <xsl:choose> + + <xsl:when test="@compact = 'yes'"> + + <dl class="compact"> + <xsl:apply-templates/> + </dl> + </xsl:when> + + <xsl:otherwise> + + <dl> + <xsl:apply-templates/> + </dl> + </xsl:otherwise> + </xsl:choose> </xsl:template> <xsl:template match="para/list[@type='tag']"> <xsl:text disable-output-escaping="yes"></p> </xsl:text> + <xsl:choose> - <dl compact=""> - <xsl:apply-templates/> - </dl> + <xsl:when test="@compact = 'yes'"> + + <dl class="compact"> + <xsl:apply-templates/> + </dl> + </xsl:when> + + <xsl:otherwise> + + <dl> + <xsl:apply-templates/> + </dl> + </xsl:otherwise> + </xsl:choose> <xsl:text disable-output-escaping="yes"><p> </xsl:text> </xsl:template>