]> granicus.if.org Git - docbook-dsssl/commitdiff
- Use real push-style processing in the foil/foilgroup page content, which
authorGábor Kövesdán <gabor@kovesdan.org>
Mon, 10 Dec 2012 21:34:38 +0000 (21:34 +0000)
committerGábor Kövesdán <gabor@kovesdan.org>
Mon, 10 Dec 2012 21:34:38 +0000 (21:34 +0000)
  allows better customization in general (e.g. you can add PI templates)
  and also let us render scattered speakernotes/handoutnotes if that is
  desired

xsl/slides/xhtml/plain.xsl

index 01d9f95834f78d507fd1686ac8b95e3b14dae520..05d5e5122bd850031de995fad9138728fa384c61 100644 (file)
@@ -66,7 +66,7 @@
        </xsl:call-template>
       </h2>
 
-      <xsl:apply-templates select="dbs:speakernotes/*"/>
+      <xsl:apply-templates select="dbs:speakernotes" mode="notes.mode"/>
     </div>
   </xsl:if>
 
@@ -78,7 +78,7 @@
         </xsl:call-template>
       </h2>
 
-      <xsl:apply-templates select="dbs:handoutnotes/*"/>
+      <xsl:apply-templates select="dbs:handoutnotes" mode="notes.mode"/>
     </div>
   </xsl:if>
 </xsl:template>
 </xsl:template>
 
 <xsl:template name="foilgroup.content">
-      <xsl:apply-templates select="*[not(self::dbs:foil)][not(self::dbs:speakernotes)][not(self::dbs:handoutnotes)]"/>
+      <xsl:apply-templates select="*[not(self::dbs:foil)]"/>
 
       <xsl:if test="($generate.foilgroup.toc != 0)">
         <xsl:choose>
       </xsl:when>
 
       <xsl:otherwise>
-       <xsl:apply-templates select="*[not(self::dbs:speakernotes)][not(self::dbs:handoutnotes)]"/>
+       <xsl:apply-templates/>
       </xsl:otherwise>
     </xsl:choose>
 
   </div>
 </xsl:template>
 
-<xsl:template match="dbs:handoutnotes">
+<xsl:template match="dbs:handoutnotes"/>
+
+<xsl:template match="dbs:speakernotes"/>
+
+<xsl:template match="dbs:handoutnotes" mode="notes.mode">
   <div class="handoutnotes">
     <xsl:apply-templates/>
   </div>
 </xsl:template>
 
-<xsl:template match="dbs:speakernotes">
+<xsl:template match="dbs:speakernotes" mode="notes.mode">
   <div class="speakernotes">
     <xsl:apply-templates/>
   </div>