poetry_print.xsl
branchstyles
changeset 21 ce4faf661fca
parent 15 27a2a404231e
--- a/poetry_print.xsl	Mon Sep 14 11:26:41 2015 -0400
+++ b/poetry_print.xsl	Sun Sep 20 14:39:52 2015 -0400
@@ -66,11 +66,17 @@
 	</xsl:with-param>
       </xsl:call-template>
       <xsl:variable name="id">
-	<xsl:call-template name="get-id"/>
+	    <xsl:call-template name="get-id"/>
       </xsl:variable>
       <flow flow-name="xsl-region-body">
-	<block id="{$id}"/>
-	<xsl:apply-templates select="*[name(.)!='section']"/>
+	    <block id="{$id}"/>
+	    <xsl:apply-templates select="*[name(.)!='section']"/>
+        <block space-before="4pt">
+          <inline font-weight="bold">Table des matières</inline>
+          <list-block provisional-distance-between-starts="5mm">
+            <xsl:apply-templates select="section|story|poetry" mode="toc"/>
+          </list-block>
+        </block>
       </flow>
     </page-sequence>
     <xsl:apply-templates select="section"/>