XSL:value-of please help me get the field title.

LelloLello
LelloLello used Ask the Experts™
on
Hi there,

 Currently i'm able to get the title of the root item.  I would like to get the title of Activity item, how i can adjust my code or variable in sitecore?


!-- ============================================= -->
  <!-- ====== SECTION MENU TITLE - ACTIVITY ======== -->
  <!-- ============================================= -->
  <xsl:template name="showtitle_activity">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />-->
        <xsl:value-of select="sc:field($MenuItemFieldName,$sc_currentitem)" disable-output-escaping="yes" />
        <!--<xsl:value-of select="sc:field('$MenuItemFieldName',$sc_currentitem)" />-->
        <!--<xsl:value-of select="sc:item('/sitecore/content/home/abc/home-accueil/activity',.)/@id" />-->
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
Here is the complete xsl

<?xml version="1.0" encoding="UTF-8"?>
<!--=============================================================
    File: Section Menu.xslt                                                   
    ==============================================================-->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sc="http://www.sitecore.net/sc" xmlns:dot="http://www.sitecore.net/dot" xmlns:ext="http://www.sitecore.net/" exclude-result-prefixes="dot sc ext">
  <!-- output directives -->
  <xsl:output method="html" indent="no" encoding="UTF-8" />

  <!-- parameters -->
  <xsl:param name="lang" select="'en'" />
  <xsl:param name="id" select="''" />
  <xsl:param name="sc_item" />
  <xsl:param name="sc_currentitem" />

  <!-- If MenuRootPath is not empty it will be root for menu -->
  <!-- Example: /sitecore/content/Unesco/Commission -->
  <xsl:param name="MenuRootPath" select="''" />
  <xsl:param name="SectionRootTemplateName" select="'!site section!file!'" />
  <xsl:param name="MenuItemFieldName" select="'Menu title'" />
  <xsl:param name="IsHideFieldName" select="'Hide Menu'" />
  <xsl:param name="IsNewWindowFieldName" select="'New Window'" />
  <xsl:param name="CSSClassOpenItem" select="'open'" />
  <xsl:param name="CSSClassCloseItem" select="'close'" />
  <xsl:param name="CSSClassSelectedItem" select="'current'" />
  <xsl:param name="DeepLevel" select="1" />
  <xsl:param name="IncludedTemplates" select="'!common!sitesection!simplepage!simpleexecutivepage!simplenewspage!'" />
  <xsl:param name="LinkTemplateName" select="'menu link'" />

  <!--variables-->
  <xsl:variable name="EnabledTemplates" select="translate(concat($SectionRootTemplateName, $IncludedTemplates, '!', $LinkTemplateName, '!'), '!!', '!')" />

  <!-- entry point -->
  <xsl:template match="*">
    <xsl:apply-templates select="$sc_item" mode="main" />
  </xsl:template>

  
  <!-- ================================= -->
  <!-- ========= MAIN MENU ============= -->
  <!-- ================================= -->
  
  <xsl:template match="*" mode="main">
    <noindex>
      <xsl:choose>
        <xsl:when test="$MenuRootPath!=''">
          <xsl:call-template name="rootmenu">
            <xsl:with-param name="root" select="sc:item($MenuRootPath,.)" />
          </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
          <xsl:call-template name="rootmenu">
            <xsl:with-param name="root" select="$sc_item/ancestor-or-self::item[contains($SectionRootTemplateName, concat('!',@template,'!'))]" />
          </xsl:call-template>
        </xsl:otherwise>
      </xsl:choose>
    </noindex>
  </xsl:template>


  <!-- ================================ -->
  <!-- ======== COMMISSION ============ -->
  <!-- ================================ -->
  <xsl:template name="rootmenu">
    <xsl:param name="root" select="''" />
    <div id="leftnav">
      <ul id="commission">
        <span class="title">The commission
          <xsl:call-template name="showtitle">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>
      
      <!-- ================================ -->
      <!-- ========= ACTIVITY ============= -->
      <!-- ================================ -->
      
      <ul id="activity">
        <span class="title">
          <xsl:call-template name="showtitle_activity">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu_activity">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>
      
      <!-- ================================ -->
      <!-- ========= INTER  =============== -->
      <!-- ================================ -->
      <ul id="inter">
        <span class="title">
          <xsl:call-template name="showtitle">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>
      <!-- ===== End of INTERN list ===== -->
    </div>
  </xsl:template>

  <!-- ============================================= -->
  <!-- ======== SECTION MENU COMMISSION ============ -->
  <!-- ============================================= -->
  <xsl:template name="sectionmenu">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <xsl:if test="$IsShow">
        <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." /> <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
    </xsl:for-each>
  </xsl:template>

  <!-- ============================================ -->
  <!-- ======== SECTION MENU ACTIVITY  ============ -->
  <!-- ============================================ -->
  <xsl:template name="sectionmenu_activity">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <xsl:if test="$IsShow">
        <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." />
              <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
    </xsl:for-each>
  </xsl:template>
  <!-- End of second box Menu -->

  <!-- ================================== -->
  <!-- ====== SECTION MENU TITLE ======== -->
  <!-- ================================== -->
  <xsl:template name="showtitle">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">
        <xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

  <!-- ============================================= -->
  <!-- ====== SECTION MENU TITLE - ACTIVITY ======== -->
  <!-- ============================================= -->
  <xsl:template name="showtitle_activity">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />-->
        <xsl:value-of select="sc:field($MenuItemFieldName,$sc_currentitem)" disable-output-escaping="yes" />
        <!--<xsl:value-of select="sc:field('$MenuItemFieldName',$sc_currentitem)" />-->
        <!--<xsl:value-of select="sc:item('/sitecore/content/home/UNESCO/home-accueil/activity',.)/@id" />-->
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

</xsl:stylesheet>

Open in new window

Can you provide a sample clip of the XML that shows the Activity item and the title (I am assuming attribute here for the title)?  It is hard to infer from just an XSL code.  In any case you could do something like this......

<xsl:template match="//activity">    
      <xsl:value-of select="@title" />
</xsl:template>

Author

Commented:
Hello Expert,

Please refer to this documentation, I will give you a help for waht sitecore support they told me to do: http://sdn.sitecore.net/reference/sitecore%206/presentation%20component%20xsl%20reference.aspx

I have this Item ID: {AF2BD331-30F0-4451-9C5F-1ECED7458510} and I would like to select the title field of the CCU item not home-accueil (rootpath).  So how can i do this in sitecore

I've try those are not selecting...
 
<xsl:param name="MenuRootPath" select="''" />
 
 <xsl:with-param name="root" select="sc:item($MenuRootPath,.)" />
 
<xsl:with-param name="root" select="$sc_item/ancestor-or-self::item[contains($SectionRootTemplateName, concat('!',@template,'!'))]" />
 
Here is sitecore supprot team answer:
------------------------------------------------
You should be able to use sc:fld() and sc:field() extension methods to get value of a field of an item in XSLT. These extensions are documented at:
http://sdn.sitecore.net/reference/sitecore%206/presentation%20component%20xsl%20reference.aspx


If your question is related to iterating between different items in the tree within XSL renderdings, please also refer to Presentation Component XSL Reference document, Implicit Relationships (XPath Axes) section, and as well as Sitecore Training materials available at http://sdn.sitecore.net/Developer/Training%20Materials/5_3%20Level%201.aspx

How Can I should use the sc:fld()

I will upload the new code here.
<?xml version="1.0" encoding="UTF-8"?>
<!--=============================================================
    File: Section Menu.xslt                                                   
    ==============================================================-->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sc="http://www.sitecore.net/sc" xmlns:dot="http://www.sitecore.net/dot" xmlns:ext="http://www.sitecore.net/" exclude-result-prefixes="dot sc ext">
  <!-- output directives -->
  <xsl:output method="html" indent="no" encoding="UTF-8" />

  <!-- parameters -->
  <xsl:param name="lang" select="'en'" />
  <xsl:param name="id" select="''" />
  <xsl:param name="sc_item" />
  <xsl:param name="sc_currentitem" />

  <!-- If MenuRootPath is not empty it will be root for menu -->
  <xsl:param name="MenuRootPath" select="''" />
  <xsl:param name="SectionRootTemplateName" select="'!site section!file!'" />
  <xsl:param name="MenuItemFieldName" select="'Menu title'" />
  <xsl:param name="IsHideFieldName" select="'Hide Menu'" />
  <xsl:param name="IsHideFieldNameActivity" select="'Activity Menu'" />
  <xsl:param name="IsHideFieldNameCommission" select="'Commission Menu'" />
  <xsl:param name="IsHideFieldNameIntern" select="'Intern Menu'" />
  <xsl:param name="IsNewWindowFieldName" select="'New Window'" />
  <xsl:param name="CSSClassOpenItem" select="'open'" />
  <xsl:param name="CSSClassCloseItem" select="'close'" />
  <xsl:param name="CSSClassSelectedItem" select="'current'" />
  <xsl:param name="DeepLevel" select="1" />
  <xsl:param name="IncludedTemplates" select="'!common!sitesection!simplepage!simpleexecutivepage!simplenewspage!'" />
  <xsl:param name="LinkTemplateName" select="'menu link'" />

  <!--variables-->
  <xsl:variable name="EnabledTemplates" select="translate(concat($SectionRootTemplateName, $IncludedTemplates, '!', $LinkTemplateName, '!'), '!!', '!')" />

  <!-- entry point -->
  <xsl:template match="*">
    <xsl:apply-templates select="$sc_item" mode="main" />
  </xsl:template>


  <!-- ================================= -->
  <!-- ========= MAIN MENU ============= -->
  <!-- ================================= -->

  <xsl:template match="*" mode="main">
    <noindex>
      <xsl:choose>
        <xsl:when test="$MenuRootPath!=''">
          <xsl:call-template name="rootmenu">
            <xsl:with-param name="root" select="sc:item($MenuRootPath,.)" />
          </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
          <xsl:call-template name="rootmenu">
            <xsl:with-param name="root" select="$sc_item/ancestor-or-self::item[contains($SectionRootTemplateName, concat('!',@template,'!'))]" />
          </xsl:call-template>
        </xsl:otherwise>
      </xsl:choose>
    </noindex>
  </xsl:template>


  <!-- ================================ -->
  <!-- ======== COMMISSION ============ -->
  <!-- ================================ -->
  <xsl:template name="rootmenu">
    <xsl:param name="root" select="''" />
    <div id="leftnav">
      <ul id="commission">
        <span class="title">
          <xsl:call-template name="showtitle">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu_commission">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>

      <!-- ================================ -->
      <!-- ========= ACTIVITY ============= -->
      <!-- ================================ -->

      <ul id="activity">
        <span class="title">
          <xsl:call-template name="showtitle_activity">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu_activity">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>

      <!-- ================================ -->
      <!-- ========= INTER  =============== -->
      <!-- ================================ -->
      <ul id="inter">
        <span class="title">
          <xsl:call-template name="showtitle_intern">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu_intern">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>
      <!-- ===== End of INTERN list ===== -->
    </div>
  </xsl:template>

  <!-- ============================================= -->
  <!-- ======== SECTION MENU COMMISSION ============ -->
  <!-- ============================================= -->
  <xsl:template name="sectionmenu_commission">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsShowCommission" select="boolean(sc:fld($IsHideFieldNameCommission,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <!--<xsl:if test="$IsShow">
      <xsl:if test="$IsShowCommission">-->
        <xsl:if test="$IsShowCommission and $IsShow">
          <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." />
              <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu_commission">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
     <!-- </xsl:if>-->
    </xsl:for-each>
  </xsl:template>



 
  <!-- ============================================ -->
  <!-- ======== SECTION MENU ACTIVITY  ============ -->
  <!-- ============================================ -->
  <xsl:template name="sectionmenu_activity">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsShowActivity" select="boolean(sc:fld($IsHideFieldNameActivity,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <!--<xsl:if test="$IsShow">-->
     <!-- <xsl:if test="$IsShowActivity">-->
        <xsl:if test="$IsShowActivity and $IsShow">
          <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." />
              <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu_activity">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
     <!-- </xsl:if>-->
    </xsl:for-each>
  </xsl:template>
  <!-- End of second box Menu -->


  <!-- ========================================= -->
  <!-- ======== SECTION MENU INTERN ============ -->
  <!-- ========================================= -->
  <xsl:template name="sectionmenu_intern">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsShowIntern" select="boolean(sc:fld($IsHideFieldNameIntern,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <!--<xsl:if test="$IsShow">
      <xsl:if test="$IsShowIntern">-->
        <xsl:if test="$IsShowIntern and $IsShow">
          <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." />
              <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu_intern">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
      <!--</xsl:if>-->
    </xsl:for-each>
  </xsl:template>



  <!-- =============================================== -->
  <!-- ====== SECTION MENU TITLE - Commission ======== -->
  <!-- =============================================== -->
  <xsl:template name="showtitle">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">
        <!--The Commission-->
        <xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

  <!-- ============================================= -->
  <!-- ====== SECTION MENU TITLE - ACTIVITY ======== -->
  <!-- ============================================= -->
  <xsl:template name="showtitle_activity">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">      
       FIELDS OF ACTIVITY 
        <!-- <xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" /> -->
        
        
        
        <!--<xsl:value-of select="sc:item('/sitecore/content/home/UNESCO/home-accueil/activity',.)/@id" />-->
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- =========================================== -->
  <!-- ====== SECTION MENU TITLE - Intern ======== -->
  <!-- =========================================== -->
  <xsl:template name="showtitle_intern">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">
        Transdisciplinary Activites
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />-->
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />-->
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$sc_currentitem)" disable-output-escaping="yes" />-->
        <!--<xsl:value-of select="sc:field('$MenuItemFieldName',$sc_currentitem)" />-->
        <!--<xsl:value-of select="sc:item('/sitecore/content/home/UNESCO/home-accueil/activity',.)/@id" />-->
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>

Open in new window

MenuTitle.jpg
OK.  I believe I understand what you are trying to do but it would still be preferable to have a sample raw XML.  What I am looking for is to determine the XML element/attribute structure/combination of your XML so that we can extract the data using normal XSLT approach (alternative to sitecore if possible).  For example, you could try doing the following.  I assume ccu is an element and menutitle is an attribute (example only).

<xsl:template match="//sitecore/Content/Home/UNESCO/home-accueil/ccu">    
      <xsl:value-of select="@menutitle" />
</xsl:template>

Also I noticed the Menu Title has space.  Spaces are not allowed in attribute names.  I really need to see your raw XML before I can provide further suggestions or advice on this issue.

Author

Commented:
Hi Alfred,

You mean my section menu.xslt .  Attached for your review.
<?xml version="1.0" encoding="UTF-8"?>
<!--=============================================================
    File: Section Menu.xslt                                                   
    ==============================================================-->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sc="http://www.sitecore.net/sc" xmlns:dot="http://www.sitecore.net/dot" xmlns:ext="http://www.sitecore.net/" exclude-result-prefixes="dot sc ext">
  <!-- output directives -->
  <xsl:output method="html" indent="no" encoding="UTF-8" />

  <!-- parameters -->
  <xsl:param name="lang" select="'en'" />
  <xsl:param name="id" select="''" />
  <xsl:param name="sc_item" />
  <xsl:param name="sc_currentitem" />

  <!-- If MenuRootPath is not empty it will be root for menu -->
  <!-- Example: /sitecore/content/Unesco/Commission -->
  <xsl:param name="MenuRootPath" select="''" />
  <xsl:param name="SectionRootTemplateName" select="'!site section!file!'" />
  <xsl:param name="MenuItemFieldName" select="'Menu title'" />
  <xsl:param name="IsHideFieldName" select="'Hide Menu'" />
  <xsl:param name="IsHideFieldNameActivity" select="'Activity Menu'" />
  <xsl:param name="IsHideFieldNameCommission" select="'Commission Menu'" />
  <xsl:param name="IsHideFieldNameIntern" select="'Intern Menu'" />
  <xsl:param name="IsNewWindowFieldName" select="'New Window'" />
  <xsl:param name="CSSClassOpenItem" select="'open'" />
  <xsl:param name="CSSClassCloseItem" select="'close'" />
  <xsl:param name="CSSClassSelectedItem" select="'current'" />
  <xsl:param name="DeepLevel" select="1" />
  <xsl:param name="IncludedTemplates" select="'!common!sitesection!simplepage!simpleexecutivepage!simplenewspage!'" />
  <xsl:param name="LinkTemplateName" select="'menu link'" />

  <!--variables-->
  <xsl:variable name="EnabledTemplates" select="translate(concat($SectionRootTemplateName, $IncludedTemplates, '!', $LinkTemplateName, '!'), '!!', '!')" />

  <!-- entry point -->
  <xsl:template match="*">
    <xsl:apply-templates select="$sc_item" mode="main" />
  </xsl:template>


  <!-- ================================= -->
  <!-- ========= MAIN MENU ============= -->
  <!-- ================================= -->

  <xsl:template match="*" mode="main">
    <noindex>
      <xsl:choose>
        <xsl:when test="$MenuRootPath!=''">
          <xsl:call-template name="rootmenu">
            <xsl:with-param name="root" select="sc:item($MenuRootPath,.)" />
          </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
          <xsl:call-template name="rootmenu">
            <xsl:with-param name="root" select="$sc_item/ancestor-or-self::item[contains($SectionRootTemplateName, concat('!',@template,'!'))]" />
          </xsl:call-template>
        </xsl:otherwise>
      </xsl:choose>
    </noindex>
  </xsl:template>


  <!-- ================================ -->
  <!-- ======== COMMISSION ============ -->
  <!-- ================================ -->
  <xsl:template name="rootmenu">
    <xsl:param name="root" select="''" />
    <div id="leftnav">
      <ul id="commission">
        <span class="title">
          <xsl:call-template name="showtitle">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu_commission">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>

      <!-- ================================ -->
      <!-- ========= ACTIVITY ============= -->
      <!-- ================================ -->

      <ul id="activity">
        <span class="title">
          <xsl:call-template name="showtitle_activity">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu_activity">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>

      <!-- ================================ -->
      <!-- ========= INTER  =============== -->
      <!-- ================================ -->
      <ul id="inter">
        <span class="title">
          <xsl:call-template name="showtitle_intern">
            <xsl:with-param name="root" select="$root" />
          </xsl:call-template>
        </span>
        <li>
          <ul>
            <li>
              <xsl:call-template name="sectionmenu_intern">
                <xsl:with-param name="root" select="$root" />
                <xsl:with-param name="level" select="0" />
              </xsl:call-template>
            </li>
          </ul>
        </li>
      </ul>
      <!-- ===== End of INTERN list ===== -->
    </div>
  </xsl:template>

  <!-- ============================================= -->
  <!-- ======== SECTION MENU COMMISSION ============ -->
  <!-- ============================================= -->
  <xsl:template name="sectionmenu_commission">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsShowCommission" select="boolean(sc:fld($IsHideFieldNameCommission,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <!--<xsl:if test="$IsShow">
      <xsl:if test="$IsShowCommission">-->
        <xsl:if test="$IsShowCommission and $IsShow">
          <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." />
              <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu_commission">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
     <!-- </xsl:if>-->
    </xsl:for-each>
  </xsl:template>



 
  <!-- ============================================ -->
  <!-- ======== SECTION MENU ACTIVITY  ============ -->
  <!-- ============================================ -->
  <xsl:template name="sectionmenu_activity">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsShowActivity" select="boolean(sc:fld($IsHideFieldNameActivity,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <!--<xsl:if test="$IsShow">-->
     <!-- <xsl:if test="$IsShowActivity">-->
        <xsl:if test="$IsShowActivity and $IsShow">
          <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." />
              <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu_activity">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
     <!-- </xsl:if>-->
    </xsl:for-each>
  </xsl:template>
  <!-- End of second box Menu -->


  <!-- ========================================= -->
  <!-- ======== SECTION MENU INTERN ============ -->
  <!-- ========================================= -->
  <xsl:template name="sectionmenu_intern">
    <xsl:param name="root" select="''" />
    <xsl:param name="level" select="0" />
    <!--<xsl:if test="contains($EnabledTemplates, concat('!', @template, '!')) ">-->
    <xsl:for-each select="$root/item[contains($EnabledTemplates, concat('!', @template, '!'))]">
      <xsl:sort select="@sortorder" data-type="number" />
      <xsl:variable name="IsHaveChild" select="boolean(./item)" />
      <xsl:variable name="IsSelected" select="boolean(./descendant-or-self::item[@id=$sc_currentitem/@id])" />
      <xsl:variable name="IsShow" select="boolean(sc:fld($IsHideFieldName,.)!=1)" />
      <xsl:variable name="IsShowIntern" select="boolean(sc:fld($IsHideFieldNameIntern,.)!=1)" />
      <xsl:variable name="IsCurrent" select="boolean(@id=$sc_currentitem/@id)" />
      <sc:sec />
      <!--<xsl:if test="$IsShow">
      <xsl:if test="$IsShowIntern">-->
        <xsl:if test="$IsShowIntern and $IsShow">
          <li>
          <!--<img src="/images/menu/arrow.gif" width="9" height="14" border="0" alt="" />-->
          <xsl:attribute name="class">
            <xsl:choose>
              <!--if first level-->
              <xsl:when test="$level=0">
                <xsl:choose>
                  <xsl:when test="$IsSelected">
                    <xsl:value-of select="$CSSClassOpenItem" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="$CSSClassCloseItem" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <!--if other level-->
              <xsl:otherwise>
                <xsl:if test="$IsSelected">
                  <xsl:value-of select="$CSSClassSelectedItem" />
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
          <xsl:variable name="href">
            <xsl:choose>
              <!--if this is the internal link-->
              <xsl:when test="./@template=$LinkTemplateName">
                <xsl:value-of select="sc:path(sc:item(sc:fld('link',.),.))" />
              </xsl:when>
              <!--otherwise-->
              <xsl:otherwise>
                <xsl:value-of select="sc:path(.)" />
              </xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <a href="{$href}">
            <xsl:if test="sc:field($IsNewWindowFieldName,.) = 1">
              <xsl:attribute name="onclick">
                window.open('<xsl:value-of select="$href" />', '',''); return false;
              </xsl:attribute>
            </xsl:if>
            <xsl:call-template name="showtitle">
              <xsl:with-param name="root" select="." />
              <!-- ici -->
            </xsl:call-template>
          </a>
          <xsl:if test="$level &lt; $DeepLevel and $IsSelected and $IsHaveChild">
            <li class="subnav">
              <ul>
                <li>
                  <xsl:call-template name="sectionmenu_intern">
                    <xsl:with-param name="root" select="." />
                    <xsl:with-param name="level" select="$level+1" />
                  </xsl:call-template>
                </li>
              </ul>
            </li>
          </xsl:if>
        </li>
      </xsl:if>
      <!--</xsl:if>-->
    </xsl:for-each>
  </xsl:template>



  <!-- =============================================== -->
  <!-- ====== SECTION MENU TITLE - Commission ======== -->
  <!-- =============================================== -->
  <xsl:template name="showtitle">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">
        <!--The Commission-->
        <xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

  <!-- ============================================= -->
  <!-- ====== SECTION MENU TITLE - ACTIVITY ======== -->
  <!-- ============================================= -->
  <xsl:template name="showtitle_activity">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">      
       FIELDS OF ACTIVITY 
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />-->
        <xsl:value-of select="sc:item('/sitecore/content/home/UNESCO/home-accueil/activity',.)/@id" />
        
        
        <!--<xsl:value-of select="sc:item('/sitecore/content/home/UNESCO/home-accueil/activity',.)/@id" />-->
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- =========================================== -->
  <!-- ====== SECTION MENU TITLE - Intern ======== -->
  <!-- =========================================== -->
  <xsl:template name="showtitle_intern">
    <xsl:param name="root" />
    <xsl:choose>
      <xsl:when test="sc:fld($MenuItemFieldName,$root)!=''">
        Transdisciplinary Activites
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />-->
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$root)" disable-output-escaping="yes" />-->
        <!--<xsl:value-of select="sc:field($MenuItemFieldName,$sc_currentitem)" disable-output-escaping="yes" />-->
        <!--<xsl:value-of select="sc:field('$MenuItemFieldName',$sc_currentitem)" />-->
        <!--<xsl:value-of select="sc:item('/sitecore/content/home/UNESCO/home-accueil/activity',.)/@id" />-->
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$root/@name" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial