templates/xsl/actes_princiers.xsl correct pb with MHT div

develop
jgenero 2 years ago
parent da46e7f39a
commit 0aee196a91

@ -411,7 +411,7 @@
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
<xsl:template match="div[@type='MHT']"> <xsl:template match="//div[@type='MHT']">
<!-- mention hors teneur (mht) --> <!-- mention hors teneur (mht) -->
<xsl:element name="p"> <xsl:element name="p">
<xsl:attribute name="class"> <xsl:attribute name="class">
@ -420,17 +420,48 @@
<xsl:choose> <xsl:choose>
<!-- indication sur le positionnement de la mht --> <!-- indication sur le positionnement de la mht -->
<xsl:when test="@subtype='gauche'"> <xsl:when test="@subtype='gauche'">
<i style="font-size: small;">(À gauche :) </i><xsl:apply-templates/> <xsl:text>
\textit{(À gauche :)} </xsl:text><xsl:apply-templates/>
</xsl:when> </xsl:when>
<xsl:when test="@subtype='droite'"> <xsl:when test="@subtype='droite'">
<i style="font-size: small;">(À droite :) </i><xsl:apply-templates/> <xsl:text>
\textit{(À droite :)} </xsl:text><xsl:apply-templates/>
</xsl:when> </xsl:when>
<xsl:when test="@subtype='replidroit'"> <xsl:when test="@subtype='replidroit'">
<i style="font-size: small;">(Sur le repli, à droite :) </i><xsl:apply-templates/> <xsl:text>
\textit{(Sur le repli, à droite :)} </xsl:text><xsl:apply-templates/>
</xsl:when> </xsl:when>
<xsl:when test="@subtype='repligauche'"> <xsl:when test="@subtype='repligauche'">
<i style="font-size: small;">(Sur le repli, à gauche :) </i><xsl:apply-templates/> <xsl:text>
\textit{(Sur le repli, à gauche :)} </xsl:text><xsl:apply-templates/>
</xsl:when>
<xsl:when test="@subtype='replicentre'">
<xsl:text>
\textit{(Sur le repli, au centre :)} </xsl:text><xsl:apply-templates/>
</xsl:when>
<xsl:when test="@subtype='sousrepligauche'">
<xsl:text>
\textit{(Sous le repli, à gauche :)} </xsl:text><xsl:apply-templates/>
</xsl:when>
<xsl:when test="@subtype='sousreplidroit'">
<xsl:text>
\textit{(Sous le repli, à droite :)} </xsl:text><xsl:apply-templates/>
</xsl:when> </xsl:when>
<xsl:when test="@subtype='sousreplicentre'">
<xsl:text>
\textit{(Sous le repli, au centre :)} </xsl:text><xsl:apply-templates/>
</xsl:when>
<xsl:when test="@subtype='sousrepligauche'">
<xsl:text>
\textit{(Sous le repli, à gauche :)} </xsl:text><xsl:apply-templates/>
</xsl:when>
<xsl:when test="@subtype='sousreplicentre'">
<xsl:text>
\textit{(Sous le repli, au centre :)} </xsl:text><xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>

Loading…
Cancel
Save