AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.149.254.35


Current Path : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xsl/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xsl/saisons.xsl

<?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('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/saisons.xml')//saison/items0/item[@from >= $season_in and @from &lt;= $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('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/saisons.xml')//saison/items0/item[@from >= $season_in and @from &lt;= $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>