52 <xsl:value-of select="@id"/> |
52 <xsl:value-of select="@id"/> |
53 </xsl:variable> |
53 </xsl:variable> |
54 <ul class="navbar"> |
54 <ul class="navbar"> |
55 <xsl:for-each select="//xref[@linkend=$my-id]"> |
55 <xsl:for-each select="//xref[@linkend=$my-id]"> |
56 <li> |
56 <li> |
57 <xsl:variable name="mysection" select="ancestor::section[last()]/@id"/> |
57 <xsl:variable name="mysection" select="ancestor::section[last()]/@id"/> |
58 <xsl:for-each select="ancestor::section"> |
58 <xsl:for-each select="ancestor::section"> |
59 <xsl:apply-templates select="." mode="xref"/> |
59 <xsl:apply-templates select="." mode="xref"/> |
60 <xsl:if test="descendant::section"> |
60 <xsl:if test="descendant::section"> |
61 <xsl:text> : </xsl:text> |
61 <xsl:text> : </xsl:text> |
62 </xsl:if> |
62 </xsl:if> |
63 </xsl:for-each> |
63 </xsl:for-each> |
64 <ul> |
64 <ul> |
65 <xsl:if test="preceding::xref[1]/ancestor::section[last()]/@id=$mysection"> |
65 <xsl:if test="preceding::xref[1]/ancestor::section[last()]/@id=$mysection"> |
66 <li><xsl:text>Précédent: </xsl:text> |
66 <li><xsl:text>Précédent: </xsl:text> |
67 <xsl:apply-templates select="preceding::xref[1]"/> |
67 <xsl:apply-templates select="preceding::xref[1]"/> |
68 </li> |
68 </li> |
69 </xsl:if> |
69 </xsl:if> |
70 <xsl:if test="following::xref[1]/ancestor::section[last()]/@id=$mysection"> |
70 <xsl:if test="following::xref[1]/ancestor::section[last()]/@id=$mysection"> |
71 <li><xsl:text>Suivant: </xsl:text> |
71 <li><xsl:text>Suivant: </xsl:text> |
72 <xsl:apply-templates select="following::xref[1]"/> |
72 <xsl:apply-templates select="following::xref[1]"/> |
73 </li> |
73 </li> |
74 </xsl:if> |
74 </xsl:if> |
75 </ul> |
75 </ul> |
76 </li> |
76 </li> |
77 </xsl:for-each> |
77 </xsl:for-each> |
78 </ul> |
78 </ul> |
79 </xsl:template> |
79 </xsl:template> |
80 |
80 |