merge styles
authorFabien Ninoles <fabien@tzone.org>
Sun, 06 Sep 2015 22:19:51 -0400
branchstyles
changeset 14 6b2069bde265
parent 13 a1ec4d6963d7 (current diff)
parent 11 e2d28bf2a3bb (diff)
child 16 357ad8c99f4a
child 23 8445a48b1679
merge
--- a/poetry_print.xsl	Sun Sep 06 22:14:16 2015 -0400
+++ b/poetry_print.xsl	Sun Sep 06 22:19:51 2015 -0400
@@ -14,7 +14,7 @@
 <xsl:attribute-set name="standard-block">
   <xsl:attribute name="text-indent">10mm</xsl:attribute>
   <xsl:attribute name="space-before">10pt</xsl:attribute>
-  <xsl:attribute name="space-before.conditionnaly">discard</xsl:attribute>
+  <xsl:attribute name="space-before.conditionality">discard</xsl:attribute>
   <xsl:attribute name="text-align">justify</xsl:attribute>
 </xsl:attribute-set>
 
@@ -99,13 +99,17 @@
       <xsl:call-template name="get-id"/>
     </xsl:variable>
     <flow flow-name="xsl-region-body">
-      <block id="{$id}"/>
-      <xsl:apply-templates select="*[not(poetry)][name(.)!='poetry']"/>
-      <xsl:if test="section[poetry]">
+      <block>
+	<xsl:if test="name(.) != 'poetry'">
+	  <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
+	</xsl:if>
+	<xsl:apply-templates select="*[not(poetry)][name(.)!='poetry']"/>
+	<xsl:if test="section[poetry]">
 	<list-block text-indent="15mm" space-before="15pt">
 	  <xsl:apply-templates select="section[poetry]" mode="toc"/>
 	</list-block>
       </xsl:if>
+      </block>
     </flow>    
   </page-sequence>
   <xsl:apply-templates select="poetry|section[poetry]"/> 
@@ -115,25 +119,15 @@
   <list-item>
     <xsl:call-template name="list-label"/>
     <list-item-body start-indent="body-start()">
-      <xsl:apply-templates select="." mode="xref"/>
-      <!-- xsl:if test="poetry|section">
-	<list-block 
-	    text-indent="body-start()"
-	    space-before="15pt">
-	  <xsl:apply-templates select="poetry|section" mode="toc"/>
-	</list-block>
-      </xsl:if -->
+      <block>
+	<xsl:apply-templates select="." mode="xref"/>
+      </block>
     </list-item-body>
   </list-item>
 </xsl:template>
 
 <xsl:template match="section">
-  <xsl:variable name="id">
-    <xsl:call-template name="get-id"/>
-  </xsl:variable>
-  <block id="{$id}">
-    <xsl:apply-templates/>
-  </block>
+  <xsl:apply-templates/>
 </xsl:template>
 
 <xsl:template match="preambule">
@@ -171,8 +165,8 @@
 <xsl:template match="nda">
   <block border="solid" padding="5mm"
     font-size="90%" font-style="italic"
-    space-before="15mm" space-before.conditionnaly="discard"
-    space-after="15mm" space-after.conditionnaly="discard"
+    space-before="15mm" space-before.conditionality="discard"
+    space-after="15mm" space-after.conditionality="discard"
     margin="5mm">
     <xsl:apply-templates/>
   </block>
@@ -243,11 +237,11 @@
   <xsl:variable name="id">
     <xsl:call-template name="get-id"/>
   </xsl:variable>
-  <basic-link internal-destination="{$id}">
-    <xsl:value-of select="descendant::title[1]"/>
-    <leader leader-pattern="dots" leader-length.maximum="254mm"/>
-    (<page-number-citation ref-id="{$id}"/>)
-  </basic-link>
+    <basic-link internal-destination="{$id}">
+      <xsl:value-of select="descendant::title[1]"/>
+      <leader leader-pattern="dots" leader-length.maximum="254mm"/>
+      (<page-number-citation ref-id="{$id}"/>)
+    </basic-link>
 </xsl:template>
 
 <xsl:template match="xref">
--- a/story_print.xsl	Sun Sep 06 22:14:16 2015 -0400
+++ b/story_print.xsl	Sun Sep 06 22:19:51 2015 -0400
@@ -14,7 +14,7 @@
 <xsl:attribute-set name="standard-block">
   <xsl:attribute name="text-indent">10mm</xsl:attribute>
   <xsl:attribute name="space-before">10pt</xsl:attribute>
-  <xsl:attribute name="space-before.conditionnaly">discard</xsl:attribute>
+  <xsl:attribute name="space-before.conditionality">discard</xsl:attribute>
   <xsl:attribute name="text-align">justify</xsl:attribute>
 </xsl:attribute-set>