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



Your IP : 18.117.101.250


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

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />

	<xsl:param name="xml_file_name" />
	<xsl:param name="match_xml_path" select="'../../stats/match/'" />
	<xsl:param name="full_xml_path" select="'../../stats/byseasons/'" />
	<xsl:param name="scores_goalies_xml_path" select="'../../stats/scorers_goalies/'" />
	<xsl:param name="match_selector_path" select="'../../stats/'" />
	<xsl:param name="scores_goalies_selector_path" select="'../../stats/'" />
	<xsl:param name="his_xml_path" select="'../../record/his/'" />
	<xsl:param name="all_xml_path" select="'../../record/all/'" />
	<xsl:param name="tab02" />
	<xsl:param name="lang" />
	<xsl:param name="call_table" />
	<xsl:param name="sort_no" />
	<xsl:param name="sort_type" />
	<xsl:param name="id_num" />
	<xsl:param name="status_type" />
	<xsl:param name="id_xml" select="substring-after($xml_file_name, '/')"/>
	<xsl:param name="id_equipe" />
	<xsl:param name="seasonsid" />
	<xsl:param name="currentseason" />
	<xsl:param name="goalies" />
	<xsl:param name="is_click" />
	<xsl:param name="is_playoff" />
	<xsl:param name="pyf_type" />
	<xsl:param name="pyf_click" />
	<xsl:param name="preselection" />
	<xsl:param name="season" select="document('../../records/book/xml/saisons.xml')//items0/item[@seasonregid = $currentseason]/@label" />
	<xsl:param name="seasonfrom" select="document('../../records/book/xml/saisons.xml')//items0/item[@seasonregid = $currentseason]/@from" />
	<xsl:param name="playoffsid" select="document('../../records/book/xml/saisons.xml')//items0/item[@seasonregid = $currentseason]/@seasonplayoffid" />
	<xsl:param name="an" select="concat( substring(substring($xml_file_name, 1, 4), 3, 2), substring(number(substring($xml_file_name, 1, 4)+1), 3, 2) )" />
	<xsl:param name="subtab" />
	
	

	<xsl:include href="templates/all_templates.xsl" />
	<xsl:include href="templates/match_templates.xsl" />
	<xsl:include href="templates/staff_templates.xsl" />
	<xsl:include href="templates/officials_templates.xsl" />
	<xsl:include href="templates/scorers_goalies_templates.xsl" />
	<xsl:include href="templates/by_season_templates.xsl" />
	<xsl:include href="templates/tabs_templates.xsl" />

	<xsl:template match="/">
		<div>
			<xsl:call-template name="tabs" />
			<div>
				<xsl:choose>
					<xsl:when test="$xml_file_name != 'default.xml' and $tab02 = $xml_file_name">

						<xsl:choose>
							<xsl:when test="$status_type = 'status_3/'">
								<xsl:call-template name="officials_table" >
									<xsl:with-param name="officials_xml_file" select="$xml_file_name" />
								</xsl:call-template>
							</xsl:when>
							<xsl:when test="$status_type = 'status_2/'">
								<xsl:call-template name="staff_table" >
									<xsl:with-param name="staff_xml_file" select="$xml_file_name" />
								</xsl:call-template>
							</xsl:when>
							<xsl:otherwise>
								<xsl:call-template name="by_season_table" >
									<xsl:with-param name="by_season_xml_file" select="$tab02" />
									<xsl:with-param name="sort_order" select="$sort_type" />
								</xsl:call-template>
							</xsl:otherwise>
						</xsl:choose>

					</xsl:when>
					<xsl:when test="$subtab = '2'">
						<xsl:call-template name="scorers_goalies" >
							<xsl:with-param name="sort_order" select="$sort_type" />
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="$subtab = '3'">
						<xsl:call-template name="all_template">
							<xsl:with-param name="his_xml_file" select="$xml_file_name" />
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="$goalies = 'true'">
						<xsl:call-template name="scorers_goalies" >
							<xsl:with-param name="sort_order" select="$sort_type" />
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="$subtab = '1'">
						<xsl:call-template name="match_by_match" >
							<xsl:with-param name="sort_order" select="$sort_type" />
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="$xml_file_name != 'default.xml' and $tab02 = 'false'">
						<xsl:call-template name="match_by_match" >
							<xsl:with-param name="sort_order" select="$sort_type" />
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="$xml_file_name != 'default.xml' and $tab02 = 'true'">
						<xsl:call-template name="by_season_table" >
							<xsl:with-param name="by_season_xml_file" select="substring-after($xml_file_name, '/')" />
							<xsl:with-param name="sort_order" select="$sort_type" />
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="$xml_file_name != 'default.xml' and $tab02 != 'true'">
						<xsl:call-template name="by_season_table" >
							<xsl:with-param name="by_season_xml_file" select="$tab02" />
							<xsl:with-param name="sort_order" select="$sort_type" />
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="$tab02 = 'true'">

						<xsl:choose>
							<xsl:when test="$status_type = 'status_3/'">
								<xsl:call-template name="officials_table" >
									<xsl:with-param name="officials_xml_file" select="$xml_file_name" />
								</xsl:call-template>
							</xsl:when>
							<xsl:when test="$status_type = 'status_2/'">
								<xsl:call-template name="staff_table" >
									<xsl:with-param name="staff_xml_file" select="$xml_file_name" />
								</xsl:call-template>
							</xsl:when>
							<xsl:otherwise>
								<xsl:call-template name="by_season_table" >
									<xsl:with-param name="by_season_xml_file" select="$tab02" />
									<xsl:with-param name="sort_order" select="$sort_type" />
								</xsl:call-template>
							</xsl:otherwise>
						</xsl:choose>

					</xsl:when>
					<xsl:when test="$tab02 = 'false'">
						<xsl:choose>
							<xsl:when test="$xml_file_name = 'default.xml'">
								<div class="tbl_pplayer">
									<div id="detaillee"></div>
								</div>
							</xsl:when>
							<xsl:otherwise>

								<xsl:choose>
									<xsl:when test="$status_type = 'status_3/'">
										<xsl:call-template name="officials_table" >
											<xsl:with-param name="officials_xml_file" select="$xml_file_name" />
										</xsl:call-template>
									</xsl:when>
									<xsl:when test="$status_type = 'status_2/'">
										<xsl:call-template name="staff_table" >
											<xsl:with-param name="staff_xml_file" select="$xml_file_name" />
										</xsl:call-template>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="by_season_table" >
											<xsl:with-param name="by_season_xml_file" select="$tab02" />
											<xsl:with-param name="sort_order" select="$sort_type" />
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>

							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$tab02 != ''">

						<xsl:choose>
							<xsl:when test="$status_type = 'status_3/'">
								<xsl:call-template name="officials_table" >
									<xsl:with-param name="officials_xml_file" select="$tab02" />
								</xsl:call-template>
							</xsl:when>
							<xsl:when test="$status_type = 'status_2/'">
								<xsl:call-template name="staff_table" >
									<xsl:with-param name="staff_xml_file" select="$tab02" />
								</xsl:call-template>
							</xsl:when>
							<xsl:otherwise>
								<xsl:call-template name="by_season_table" >
									<xsl:with-param name="by_season_xml_file" select="$tab02" />
									<xsl:with-param name="sort_order" select="$sort_type" />
								</xsl:call-template>
							</xsl:otherwise>
						</xsl:choose>

					</xsl:when>
					<xsl:otherwise>
						<xsl:call-template name="match_by_match" >
							<xsl:with-param name="sort_order" select="$sort_type" />
						</xsl:call-template>
					</xsl:otherwise>
				</xsl:choose>
			</div>
		</div>

	</xsl:template>

</xsl:stylesheet>