Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 18.219.158.84
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="season_in" />
<xsl:param name="season_out" />
<xsl:param name="visible_state" />
<xsl:param name="lang" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$visible_state = 'on'">
<select id="season_selector" name="season_selector" onChange="javascript:get_section_letter(document.getElementById('section02'), this.value);" class="form-control">
<xsl:for-each select="document('../xml/saisons.xml')//saison/items0/item[@from >= $season_in and @from <= $season_out]" >
<option value="{./@value}">
<xsl:if test="$season_in != ''">
<xsl:if test="$season_out != ''">
<xsl:value-of select="./@label" />
</xsl:if>
</xsl:if>
</option>
</xsl:for-each>
</select>
</xsl:when>
<xsl:otherwise>
<select id="season_selector" name="season_selector" onChange="javascript:get_section_letter(document.getElementById('section02'), this.value);" class="form-control" style="display:none;">
<xsl:for-each select="document('../xml/saisons.xml')//saison/items0/item[@from >= $season_in and @from <= $season_out]" >
<option value="{./@value}">
<xsl:if test="$season_in != ''">
<xsl:if test="$season_out != ''">
<xsl:value-of select="./@label" />
</xsl:if>
</xsl:if>
</option>
</xsl:for-each>
</select>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
|