bdelacretaz 2003/09/26 08:02:41
Modified: src/blocks/slop/samples/yapt/stylesheets html-slides.xsl
Log:
no style hints for single page version
Revision Changes Path
1.2 +11 -3
cocoon-2.1/src/blocks/slop/samples/yapt/stylesheets/html-slides.xsl
Index: html-slides.xsl
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/slop/samples/yapt/stylesheets/html-slides.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- html-slides.xsl 26 Sep 2003 14:42:36 -0000 1.1
+++ html-slides.xsl 26 Sep 2003 15:02:41 -0000 1.2
@@ -119,8 +119,16 @@
<div class="singleSlideHeading">
<xsl:apply-templates mode="content" select="slide-head/*"/>
</div>
- <!-- use style hints if any -->
- <div class="{concat('slideHint',slide-hints/style)}">
+
+ <!-- use style hints if any (but not if generating multiple
slides for printing) -->
+ <xsl:variable name="hintClass">
+ <xsl:choose>
+ <xsl:when test="$slideCount > 1">slideHint</xsl:when>
+ <xsl:otherwise><xsl:value-of
select="concat('slideHint',slide-hints/style)"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <div class="{$hintClass}">
<div class="singleSlideContent">
<xsl:apply-templates mode="content"
select="slide-content/*"/>
</div>