Как определить текущий элемент в xsl

#
Как определить текущий элемент в xsl
Есть меню и мне надо вывести подпункты текущего элемента меню. Как это сделать на xsl не представляю, но надо. Самого xsl практически тоже не знаю. Очень нужна помощь.
Модератор
#
Re: Как определить текущий элемент в xsl
Начните с включения XML (см. руководство по интеграции) и ознакомления с данными нужного Вам XML
#
Re: Как определить текущий элемент в xsl
XML включен, даже вызов xsl-шаблона включил. А вот поправить xsl-шаблон, не знаю как. На XML смотрел. Вот он

<?xml version="1.0" encoding="windows-1251"?>
<document>
   <site site_id="16">
      <site_name>Shareknowledge-lms.com new</site_name>
      <site_coding>windows-1251</site_coding>
      <site_locale>ru_RU.cp1251</site_locale>
      <site_chmod>0755</site_chmod>
      <site_files_chmod>0644</site_files_chmod>
      <site_date_format>%d.%m.%Y</site_date_format>
      <site_date_time_format>%d.%m.%Y %H:%M:%S</site_date_time_format>
      <site_html_cache_clear_probability>10000</site_html_cache_clear_probability>
      <alias alias_id="75" alias_current="1">
         <alias_name>new.shareknowledge-lms.com</alias_name>
      </alias>
   </site>
   <structure id="1376" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Error 404</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>0</structure_order>
      <structure_path_name>404</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/404/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <propertys>
      </propertys>
   </structure>
   <structure id="1244" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Home</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>0</structure_order>
      <structure_path_name>/</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1289" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>IT Professional – match need with benefit</name>
         <show>1</show>
         <show_link>0</show_link>
         <level>1</level>
         <id_parent>1244</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>0</structure_order>
         <structure_path_name>it-professional-match-need-with-benefit</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/it-professional-match-need-with-benefit/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1278" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Search</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>0</structure_order>
      <structure_path_name>search</structure_path_name>
      <structure_type>2</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/search/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <propertys>
      </propertys>
   </structure>
   <structure id="1279" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Sitemap</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>0</structure_order>
      <structure_path_name>sitemap</structure_path_name>
      <structure_type>2</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/sitemap/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <propertys>
      </propertys>
   </structure>
   <structure id="1378" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>TestNews</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>0</structure_order>
      <structure_path_name>testnews</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/testnews/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1379" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>IT Professional – match need with benefit</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1378</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>0</structure_order>
         <structure_path_name>it-professional-match-need-with-benefit</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/testnews/it-professional-match-need-with-benefit/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1225" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Products</name>
      <show>1</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>10</structure_order>
      <structure_path_name>product</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>1</is_external_link>
      <external_link>/product/shareknowledge-lms/</external_link>
      <link>/product/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1245" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>ShareKnowledge LMS</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1225</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>10</structure_order>
         <structure_path_name>shareknowledge-lms</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/product/shareknowledge-lms/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <structure id="1284" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Overview</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1245</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>5</structure_order>
            <structure_path_name>overview</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-lms/overview/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1247" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Advanced Features and Functionality</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1245</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>10</structure_order>
            <structure_path_name>advanced-features-and-functionality</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-lms/advanced-features-and-functionality/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1249" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Integration</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1245</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>30</structure_order>
            <structure_path_name>integration</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-lms/integration/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1250" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Why SharePoint Platform</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1245</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>40</structure_order>
            <structure_path_name>why-sharepoint-platform</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-lms/why-sharepoint-platform/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1252" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>LMS Scorecard</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1245</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>60</structure_order>
            <structure_path_name>lms-scorecard</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-lms/lms-scorecard/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1285" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Marketing Offers</name>
            <show>1</show>
            <show_link>0</show_link>
            <level>2</level>
            <id_parent>1245</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>70</structure_order>
            <structure_path_name>marketing-offers</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-lms/marketing-offers/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1286" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Request for Demo form page</name>
            <show>1</show>
            <show_link>0</show_link>
            <level>2</level>
            <id_parent>1245</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>80</structure_order>
            <structure_path_name>request-for-demo-form-page</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-lms/request-for-demo-form-page/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <propertys>
         </propertys>
      </structure>
      <structure id="1246" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>ShareKnowledge Author</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1225</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>20</structure_order>
         <structure_path_name>shareknowledge-author</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/product/shareknowledge-author/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <structure id="1255" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Functionality</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1246</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>10</structure_order>
            <structure_path_name>functionality</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/product/shareknowledge-author/functionality/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1257" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Solutions</name>
      <show>1</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>20</structure_order>
      <structure_path_name>solutions</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/solutions/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1258" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>LMS for Corporations</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1257</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>10</structure_order>
         <structure_path_name>lms-for-corporations</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/solutions/lms-for-corporations/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <structure id="1260" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>For the e-Learning Professional</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1258</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>10</structure_order>
            <structure_path_name>for-the-e-learning-professional</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/solutions/lms-for-corporations/for-the-e-learning-professional/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1261" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>For the IT Professional</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1258</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>20</structure_order>
            <structure_path_name>for-the-it-professional</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/solutions/lms-for-corporations/for-the-it-professional/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1262" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>For the HR Professional</name>
            <show>1</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1258</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>30</structure_order>
            <structure_path_name>for-the-hr-professional</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/solutions/lms-for-corporations/for-the-hr-professional/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <propertys>
         </propertys>
      </structure>
      <structure id="1287" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Top 6 MUST HAVES for a Corporate LMS</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1257</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>15</structure_order>
         <structure_path_name>top-6-must-haves-for-a-corporate-lms</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/solutions/top-6-must-haves-for-a-corporate-lms/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <structure id="1288" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>E-Learning Professional – match need with benefit</name>
            <show>1</show>
            <show_link>0</show_link>
            <level>2</level>
            <id_parent>1287</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>10</structure_order>
            <structure_path_name>e-learning-professional-match-need-with-benefit</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/solutions/top-6-must-haves-for-a-corporate-lms/e-learning-professional-match-need-with-benefit/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1290" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>IT Professional – match need with benefit</name>
            <show>1</show>
            <show_link>0</show_link>
            <level>2</level>
            <id_parent>1287</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>20</structure_order>
            <structure_path_name>it-professional-match-need-with-benefit</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/solutions/top-6-must-haves-for-a-corporate-lms/it-professional-match-need-with-benefit/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1291" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>HR Professional – match need with benefit</name>
            <show>1</show>
            <show_link>0</show_link>
            <level>2</level>
            <id_parent>1287</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>30</structure_order>
            <structure_path_name>hr-professional-match-need-with-benefit</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/solutions/top-6-must-haves-for-a-corporate-lms/hr-professional-match-need-with-benefit/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <propertys>
         </propertys>
      </structure>
      <structure id="1259" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>LMS for Academia</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1257</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>20</structure_order>
         <structure_path_name>lms-for-academia</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/solutions/lms-for-academia/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1230" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Support</name>
      <show>1</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>30</structure_order>
      <structure_path_name>support</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/support/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1265" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Technical Support</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1230</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>30</structure_order>
         <structure_path_name>technical-support</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/support/technical-support/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1266" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>FAQs</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1230</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>40</structure_order>
         <structure_path_name>faqs</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/support/faqs/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1228" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Partners</name>
      <show>1</show>

      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>40</structure_order>
      <structure_path_name>partners</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/partners/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1267" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Our Premier Partners</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1228</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>10</structure_order>
         <structure_path_name>our-premier-partners</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/partners/our-premier-partners/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1229" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Resources (Library)</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>50</structure_order>
      <structure_path_name>resources-library</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/resources-library/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1268" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Product sheets / Tech support docs / Webinars/ Whitepapers/ LMS feed</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1229</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>10</structure_order>
         <structure_path_name>product-sheets-tech-support-docs-webinars-whitepapers-lms-feed</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/resources-library/product-sheets-tech-support-docs-webinars-whitepapers-lms-feed/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1269" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Demos</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1229</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>20</structure_order>
         <structure_path_name>demos</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/resources-library/demos/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
         <property type="String" id="298" xml_name="h1" name="h1">
            <property_name>h1</property_name>
            <value>Industry and Business Solutions</value>
            <h1>Industry and Business Solutions</h1>
            <default_value></default_value>
            <order>0</order>
         </property>
      </propertys>
   </structure>
   <structure id="1231" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Company</name>
      <show>1</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>70</structure_order>
      <structure_path_name>company</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>1</is_external_link>
      <external_link>/company/who-we-are/</external_link>
      <link>/company/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1270" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Who we are</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1231</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>10</structure_order>
         <structure_path_name>who-we-are</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/company/who-we-are/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1271" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Awards</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1231</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>20</structure_order>
         <structure_path_name>awards</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/company/awards/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <structure id="1427" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>See also</name>
            <show>0</show>
            <show_link>0</show_link>
            <level>2</level>
            <id_parent>1271</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>0</structure_order>
            <structure_path_name>see-also</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>0</is_external_link>
            <external_link></external_link>
            <link>/company/awards/see-also/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1425" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Join our email list SIGN UP</name>
            <show>0</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1271</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>10</structure_order>
            <structure_path_name>join-our-email-list-sign-up</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>1</is_external_link>
            <external_link>/</external_link>
            <link>/company/awards/join-our-email-list-sign-up/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <structure id="1426" menu_id="28">
            <current_structure_id>1270</current_structure_id>
            <name>Contact Us</name>
            <show>0</show>
            <show_link>1</show_link>
            <level>2</level>
            <id_parent>1271</id_parent>
            <structure_title></structure_title>
            <structure_description></structure_description>
            <structure_keywords></structure_keywords>
            <structure_order>20</structure_order>
            <structure_path_name>contact-us</structure_path_name>
            <structure_type>0</structure_type>
            <structure_access>0</structure_access>
            <structure_allow_indexation>0</structure_allow_indexation>
            <is_external_link>1</is_external_link>
            <external_link>/</external_link>
            <link>/company/awards/contact-us/</link>
            <structure_change_frequency>0</structure_change_frequency>
            <structure_priority>0.5</structure_priority>
            <propertys>
            </propertys>
         </structure>
         <propertys>
         </propertys>
      </structure>
      <structure id="1272" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>News &amp; Events</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1231</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>30</structure_order>
         <structure_path_name>news-events</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/company/news-events/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1273" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Careers</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1231</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>40</structure_order>
         <structure_path_name>careers</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/company/careers/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1274" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Contact Us</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1231</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>50</structure_order>
         <structure_path_name>contact-us</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/company/contact-us/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1232" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Additional</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>80</structure_order>
      <structure_path_name>additional</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/additional/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <structure id="1275" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>End User Licensing</name>
         <show>0</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1232</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>10</structure_order>
         <structure_path_name>end-user-licensing</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/additional/end-user-licensing/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1374" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Agreement</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1232</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>20</structure_order>
         <structure_path_name>agreement</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/additional/agreement/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1373" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Terms of Use</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1232</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>30</structure_order>
         <structure_path_name>terms-of-use</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/additional/terms-of-use/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <structure id="1277" menu_id="28">
         <current_structure_id>1270</current_structure_id>
         <name>Privacy Statement</name>
         <show>1</show>
         <show_link>1</show_link>
         <level>1</level>
         <id_parent>1232</id_parent>
         <structure_title></structure_title>
         <structure_description></structure_description>
         <structure_keywords></structure_keywords>
         <structure_order>40</structure_order>
         <structure_path_name>privacy-statement</structure_path_name>
         <structure_type>0</structure_type>
         <structure_access>0</structure_access>
         <structure_allow_indexation>0</structure_allow_indexation>
         <is_external_link>0</is_external_link>
         <external_link></external_link>
         <link>/additional/privacy-statement/</link>
         <structure_change_frequency>0</structure_change_frequency>
         <structure_priority>0.5</structure_priority>
         <propertys>
         </propertys>
      </structure>
      <propertys>
      </propertys>
   </structure>
   <structure id="1234" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>News</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>90</structure_order>
      <structure_path_name>news</structure_path_name>
      <structure_type>2</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/news/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <propertys>
      </propertys>
   </structure>
   <structure id="1235" menu_id="28">
      <current_structure_id>1270</current_structure_id>
      <name>Home2</name>
      <show>0</show>
      <show_link>1</show_link>
      <level>0</level>
      <id_parent>0</id_parent>
      <structure_title></structure_title>
      <structure_description></structure_description>
      <structure_keywords></structure_keywords>
      <structure_order>1000</structure_order>
      <structure_path_name>home2</structure_path_name>
      <structure_type>0</structure_type>
      <structure_access>0</structure_access>
      <structure_allow_indexation>0</structure_allow_indexation>
      <is_external_link>0</is_external_link>
      <external_link></external_link>
      <link>/home2/</link>
      <structure_change_frequency>0</structure_change_frequency>
      <structure_priority>0.5</structure_priority>
      <propertys>
      </propertys>
   </structure>
</document>


Надо например чтобы при нажатии на пункт меню Product, выводились его подпункты всех уровней. Вот определить, что, например Product, является текущим я и не могу.
Модератор
#
Re: Как определить текущий элемент в xsl
serg32,
у Вас в каждом узле структуры есть current_structure_id, используйте его для сравнения. Еще в XSL меню есть полезная проверка:
   <!--
                  Выделяем текущую страницу добавлением к <a> стиля font-weight: bold,
                     если это текущая страница, либо у нее есть ребенок с атрибутом id, равным текущей uheggt.
                     -->
                     <xsl:if test="current_structure_id = @id or count(.//structure[@id=$current_structure_id]) = 1">
#
Re: Как определить текущий элемент в xsl
Насчет первой части я понял что сравниваем Id в xml с текущим id. А вот что эта конструкция означает:count(.//structure[@id=$current_structure_id]) = 1" ? Или где об этом в подробностях можно прочесть?
Модератор
#
Re: Как определить текущий элемент в xsl
serg32,
HostCMS писал(а):
либо у нее есть ребенок с атрибутом id, равным текущей uheggt.

count считает количество узлов, .// говорит выбрать все дочерние узлы любого уровня от текущего узла.
#
Re: Как определить текущий элемент в xsl
Вот такой xsl вышел:
<?xml version="1.0" encoding="windows-1251"?>

<!DOCTYPE xsl:stylesheet>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="Windows-1251" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
   
   <xsl:template match="/document">
      <xsl:apply-templates select="structure/structure"/>
   </xsl:template>
   
   <xsl:template match="structure/structure">
      <xsl:variable name="current_structure_id" select="/document/structure/current_structure_id"/>
      <xsl:if test="current_structure_id = @id or count(.//structure[@id=$current_structure_id]) = 1">
         <div class="level2"><a href="{link}"><xsl:value-of disable-escaping-output="yes" select="name"/></a></div>
      </xsl:if>
   </xsl:template>
</xsl:stylesheet>


Но он отображает только текущее подменю, а не все отсальные пункты. Применительно к xml'ю, например при нажатии на пункт Product, он не выдает ни одного подменю.
Модератор
#
Re: Как определить текущий элемент в xsl
serg32,
1. Код оформляйте BB-тегом code.
2. Внутри проверки у Вас просто вывод названия меню, а вызова вывода подузлов нет
<xsl:apply-templates select="structure"/>
#
Re: Как определить текущий элемент в xsl
А вот как этот вызов подузлов сделать?
Модератор
#
Re: Как определить текущий элемент в xsl
serg32,
я в предыдущем сообщении в п. 2. показал.
Авторизация