Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.145.12.233
<?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="main_tool_file">
<xsl:param name="file_title" />
<xsl:param name="main_category_path_item" />
<xsl:param name="main_category_path_items_number" />
<xsl:param name="parent_node" />
<xsl:param name="counter_item_number" />
<xsl:param name="main_category_name" />
<xsl:param name="main_items_number_name" />
<div style="padding-top:10px; padding-bottom:10px"><h5><strong>----> <xsl:value-of select="$file_title" /></strong></h5></div>
<xsl:variable name="items1_total" select="count($main_category_path_item)" />
<div><lists></div>
<div style="padding-left:25px;"><<xsl:value-of select="$main_category_name" />></div>
<xsl:for-each select="$main_category_path_items_number">
<div style="padding-left:50px;"><<xsl:value-of select="$main_items_number_name" /> reftable="<xsl:value-of select="parent::*/@itemid" />" ></div>
<xsl:for-each select="./item">
<xsl:if test="$counter_item_number = 'items2'">
<xsl:call-template name="item_values" >
<xsl:with-param name="i" select="0" />
<xsl:with-param name="count_item" select="items2/item" />
<xsl:with-param name="cat_name" select="$main_category_name" />
</xsl:call-template>
</xsl:if>
<xsl:if test="$counter_item_number = 'items3'">
<xsl:call-template name="item_values" >
<xsl:with-param name="i" select="0" />
<xsl:with-param name="count_item" select="items3/item" />
</xsl:call-template>
</xsl:if>
<xsl:if test="$counter_item_number = 'items4'">
<xsl:call-template name="item_values" >
<xsl:with-param name="i" select="0" />
<xsl:with-param name="count_item" select="items4/item" />
</xsl:call-template>
</xsl:if>
<xsl:if test="$counter_item_number = 'items5'">
<xsl:call-template name="item_values" >
<xsl:with-param name="i" select="0" />
<xsl:with-param name="count_item" select="items5/item" />
</xsl:call-template>
</xsl:if>
<xsl:if test="$counter_item_number = 'items6'">
<xsl:call-template name="item_values" >
<xsl:with-param name="i" select="0" />
<xsl:with-param name="count_item" select="items6/item" />
</xsl:call-template>
</xsl:if>
<xsl:if test="$counter_item_number = 'items7'">
<xsl:call-template name="item_values" >
<xsl:with-param name="i" select="0" />
<xsl:with-param name="count_item" select="items7/item" />
</xsl:call-template>
</xsl:if>
</xsl:for-each>
<div style="padding-left:50px;"></<xsl:value-of select="$main_items_number_name" />></div>
</xsl:for-each>
<div style="padding-left:25px;"></<xsl:value-of select="$main_category_name" />></div>
<div></lists></div>
</xsl:template>
<xsl:template name="item_values">
<xsl:param name="i" />
<xsl:param name="count_item" />
<xsl:param name="cat_name" />
<div style="padding-left:75px;">
<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:variable name="this_itemid" select="@itemid" />
reftable="<xsl:value-of select="@itemid" />"
<xsl:if test="$count_item = items2/item">
<xsl:choose>
<xsl:when test="$cat_name = 'ligue'">
third_level_reffilter="<xsl:value-of select="document('../xml/main_tool_selectors.xml')//ligue/items1/item[@itemid=$this_itemid]/items2/item[@id=0]/@itemid" />"
third_level_reflabel="<xsl:value-of select="document('../xml/main_tool_selectors.xml')//ligue/items1/item[@itemid=$this_itemid]/items2/item[@id=0]/items3/item/@label" />"
</xsl:when>
<xsl:when test="$cat_name = 'equipe'">
third_level_reffilter="<xsl:value-of select="document('../xml/main_tool_selectors.xml')//equipe/items1/item[@itemid=$this_itemid]/items2/item[@id=0]/@itemid" />"
third_level_reflabel="<xsl:value-of select="document('../xml/main_tool_selectors.xml')//equipe/items1/item[@itemid=$this_itemid]/items2/item[@id=0]/items3/item/@label" />"
</xsl:when>
<xsl:when test="$cat_name = 'franchise'">
third_level_reffilter="<xsl:value-of select="document('../xml/main_tool_selectors.xml')//franchise/items1/item[@itemid=$this_itemid]/items2/item[@id=0]/@itemid" />"
third_level_reflabel="<xsl:value-of select="document('../xml/main_tool_selectors.xml')//franchise/items1/item[@itemid=$this_itemid]/items2/item[@id=0]/items3/item/@label" />"
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:if> />
</div>
</xsl:template>
<xsl:template match="/">
<xsl:variable name="document_xml_name" select="'../xml/main_tool_selectors.xml'" />
<!-- LIGUE -->
<!-- main_tool_selectors_items1.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'ligue_levels > main_tool_selectors_items1.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//ligue/items1/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//ligue/items1" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items2'" />
<xsl:with-param name="main_category_name" select="'ligue'" />
<xsl:with-param name="main_items_number_name" select="'items1'" />
</xsl:call-template>
<!-- main_tool_selectors_items2.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'ligue_levels > main_tool_selectors_items2.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//ligue/items1/item/items2/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//ligue/items1/item/items2" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items3'" />
<xsl:with-param name="main_category_name" select="'ligue'" />
<xsl:with-param name="main_items_number_name" select="'items2'" />
</xsl:call-template>
<!-- main_tool_selectors_items3.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'ligue_levels > main_tool_selectors_items3.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//ligue/items1/item/items2/item/items3/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//ligue/items1/item/items2/item/items3" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items4'" />
<xsl:with-param name="main_category_name" select="'ligue'" />
<xsl:with-param name="main_items_number_name" select="'items3'" />
</xsl:call-template>
<!-- main_tool_selectors_items4.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'ligue_levels > main_tool_selectors_items4.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//ligue/items1/item/items2/item/items3/item/items4/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//ligue/items1/item/items2/item/items3/item/items4" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items5'" />
<xsl:with-param name="main_category_name" select="'ligue'" />
<xsl:with-param name="main_items_number_name" select="'items4'" />
</xsl:call-template>
<!-- main_tool_selectors_items5.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'ligue_levels > main_tool_selectors_items5.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//ligue/items1/item/items2/item/items3/item/items4/item/items5/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//ligue/items1/item/items2/item/items3/item/items4/item/items5" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items6'" />
<xsl:with-param name="main_category_name" select="'ligue'" />
<xsl:with-param name="main_items_number_name" select="'items5'" />
</xsl:call-template>
<!-- main_tool_selectors_items6.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'ligue_levels > main_tool_selectors_items6.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//ligue/items1/item/items2/item/items3/item/items4/item/items5/item/items6/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//ligue/items1/item/items2/item/items3/item/items4/item/items5/item/items6" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items7'" />
<xsl:with-param name="main_category_name" select="'ligue'" />
<xsl:with-param name="main_items_number_name" select="'items6'" />
</xsl:call-template>
<!-- LIGUE -->
<!-- EQUIPE -->
<!-- main_tool_selectors_items1.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'equipe_levels > main_tool_selectors_items1.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//equipe/items1/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//equipe/items1" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items2'" />
<xsl:with-param name="main_category_name" select="'equipe'" />
<xsl:with-param name="main_items_number_name" select="'items1'" />
</xsl:call-template>
<!-- main_tool_selectors_items2.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'equipe_levels > main_tool_selectors_items2.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//equipe/items1/item/items2/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//equipe/items1/item/items2" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items3'" />
<xsl:with-param name="main_category_name" select="'equipe'" />
<xsl:with-param name="main_items_number_name" select="'items2'" />
</xsl:call-template>
<!-- main_tool_selectors_items3.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'equipe_levels > main_tool_selectors_items3.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//equipe/items1/item/items2/item/items3/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//equipe/items1/item/items2/item/items3" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items4'" />
<xsl:with-param name="main_category_name" select="'equipe'" />
<xsl:with-param name="main_items_number_name" select="'items3'" />
</xsl:call-template>
<!-- main_tool_selectors_items4.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'equipe_levels > main_tool_selectors_items4.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//equipe/items1/item/items2/item/items3/item/items4/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//equipe/items1/item/items2/item/items3/item/items4" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items5'" />
<xsl:with-param name="main_category_name" select="'equipe'" />
<xsl:with-param name="main_items_number_name" select="'items4'" />
</xsl:call-template>
<!-- main_tool_selectors_items5.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'equipe_levels > main_tool_selectors_items5.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//equipe/items1/item/items2/item/items3/item/items4/item/items5/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//equipe/items1/item/items2/item/items3/item/items4/item/items5" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items6'" />
<xsl:with-param name="main_category_name" select="'equipe'" />
<xsl:with-param name="main_items_number_name" select="'items5'" />
</xsl:call-template>
<!-- main_tool_selectors_items6.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'equipe_levels > main_tool_selectors_items6.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//equipe/items1/item/items2/item/items3/item/items4/item/items5/item/items6/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//equipe/items1/item/items2/item/items3/item/items4/item/items5/item/items6" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items7'" />
<xsl:with-param name="main_category_name" select="'equipe'" />
<xsl:with-param name="main_items_number_name" select="'items6'" />
</xsl:call-template>
<!-- EQUIPE -->
<!-- FRANCHISE -->
<!-- main_tool_selectors_items1.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'franchise_levels > main_tool_selectors_items1.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//franchise/items1/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//franchise/items1" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items2'" />
<xsl:with-param name="main_category_name" select="'franchise'" />
<xsl:with-param name="main_items_number_name" select="'items1'" />
</xsl:call-template>
<!-- main_tool_selectors_items2.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'franchise_levels > main_tool_selectors_items2.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//franchise/items1/item/items2/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//franchise/items1/item/items2" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items3'" />
<xsl:with-param name="main_category_name" select="'franchise'" />
<xsl:with-param name="main_items_number_name" select="'items2'" />
</xsl:call-template>
<!-- main_tool_selectors_items3.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'franchise_levels > main_tool_selectors_items3.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//franchise/items1/item/items2/item/items3/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//franchise/items1/item/items2/item/items3" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items4'" />
<xsl:with-param name="main_category_name" select="'franchise'" />
<xsl:with-param name="main_items_number_name" select="'items3'" />
</xsl:call-template>
<!-- main_tool_selectors_items4.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'franchise_levels > main_tool_selectors_items4.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//franchise/items1/item/items2/item/items3/item/items4/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//franchise/items1/item/items2/item/items3/item/items4" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items5'" />
<xsl:with-param name="main_category_name" select="'franchise'" />
<xsl:with-param name="main_items_number_name" select="'items4'" />
</xsl:call-template>
<!-- main_tool_selectors_items5.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'franchise_levels > main_tool_selectors_items5.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//franchise/items1/item/items2/item/items3/item/items4/item/items5/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//franchise/items1/item/items2/item/items3/item/items4/item/items5" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items6'" />
<xsl:with-param name="main_category_name" select="'franchise'" />
<xsl:with-param name="main_items_number_name" select="'items5'" />
</xsl:call-template>
<!-- main_tool_selectors_items6.xml -->
<xsl:call-template name="main_tool_file">
<xsl:with-param name="file_title" select="'franchise_levels > main_tool_selectors_items6.xml'" />
<xsl:with-param name="main_category_path_item" select="document($document_xml_name)//franchise/items1/item/items2/item/items3/item/items4/item/items5/item/items6/item" />
<xsl:with-param name="main_category_path_items_number" select="document($document_xml_name)//franchise/items1/item/items2/item/items3/item/items4/item/items5/item/items6" />
<xsl:with-param name="parent_node" select="parent::*/@itemid" />
<xsl:with-param name="counter_item_number" select="'items7'" />
<xsl:with-param name="main_category_name" select="'franchise'" />
<xsl:with-param name="main_items_number_name" select="'items6'" />
</xsl:call-template>
<!-- FRANCHISE -->
</xsl:template>
</xsl:stylesheet>
|