poetry_html.xsl
branchstyles
changeset 20 78ac9176f4ef
parent 15 27a2a404231e
--- a/poetry_html.xsl	Mon Sep 14 11:30:58 2015 -0400
+++ b/poetry_html.xsl	Mon Sep 14 11:32:00 2015 -0400
@@ -54,25 +54,25 @@
   <ul class="navbar">
     <xsl:for-each select="//xref[@linkend=$my-id]">
       <li>
-	<xsl:variable name="mysection" select="ancestor::section[last()]/@id"/>
-	<xsl:for-each select="ancestor::section">
-	  <xsl:apply-templates select="." mode="xref"/>
-	  <xsl:if test="descendant::section">
-	    <xsl:text> : </xsl:text>
-	  </xsl:if>
-	</xsl:for-each>
-	<ul>
-	  <xsl:if test="preceding::xref[1]/ancestor::section[last()]/@id=$mysection">
-	    <li><xsl:text>Précédent: </xsl:text>
-	    <xsl:apply-templates select="preceding::xref[1]"/>
-	    </li>
-	  </xsl:if>
-	  <xsl:if test="following::xref[1]/ancestor::section[last()]/@id=$mysection">
-	    <li><xsl:text>Suivant: </xsl:text>
-	    <xsl:apply-templates select="following::xref[1]"/>
-	    </li>
-	  </xsl:if>
-	</ul>
+	    <xsl:variable name="mysection" select="ancestor::section[last()]/@id"/>
+	    <xsl:for-each select="ancestor::section">
+	      <xsl:apply-templates select="." mode="xref"/>
+	      <xsl:if test="descendant::section">
+	        <xsl:text> : </xsl:text>
+	      </xsl:if>
+	    </xsl:for-each>
+	    <ul>
+	      <xsl:if test="preceding::xref[1]/ancestor::section[last()]/@id=$mysection">
+	        <li><xsl:text>Précédent: </xsl:text>
+	        <xsl:apply-templates select="preceding::xref[1]"/>
+	        </li>
+	      </xsl:if>
+	      <xsl:if test="following::xref[1]/ancestor::section[last()]/@id=$mysection">
+	        <li><xsl:text>Suivant: </xsl:text>
+	        <xsl:apply-templates select="following::xref[1]"/>
+	        </li>
+	      </xsl:if>
+	    </ul>
       </li>
     </xsl:for-each>
   </ul>