1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <xsl:template name="liste_index">
<ul>
<xsl:for-each select="//Index">
<xsl:variable name="IsImprReg" select="false()"/>
<xsl:choose>
<xsl:when test="NomNotice[contains(.,'ImprReg')]">
<xsl:if test="$IsImprReg'">
<li>
<xsl:text>test de région .html</xsl:text>
<xsl:variable name="IsImprReg" select="true()"/>
</li>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<li>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="NomNotice"/>
<xsl:text>-1.html</xsl:text>
</xsl:attribute>
<xsl:value-of select="Nom"/>
</xsl:element>
</li>
</xsl:otherwise> => CAS ok, et fonctionnel
</xsl:choose>
</xsl:for-each>
</ul>
</xsl:template> |
Partager