We help IT Professionals succeed at work.

How to select nested node

I'm very new at this and trying to make a change to an existing xslt file. The XML has nested <Item> and <Menu> nodes that pretty much follow this pattern (two levels of <Menu>)

<Menu>
   <Item>
   <Item>
       <Menu>
           <Item>
           <Item>
   <item>
 
I only want the top level <Menu> node and everything below it if it is selected.

This almost gets me there:
<xsl:apply-templates select="Menu[descendant-or-self::MenuSelected='true']  "/>

The problem then is that I'm not seeing the second-level <Menu> node and its <Item> nodes.

So I tried:
<xsl:apply-templates select="Menu[descendant-or-self::MenuSelected='true']  |  Menu[ancestor-or-self::MenuSelected='true'] "/>

But that made no difference.
I cannot for the life of me figure out how to get that second-level <Menu> when the first-level is selected.

Following is the xslt file. The statement referenced above is at line 64.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" indent="yes"/>
	<!--xsl:strip-space elements="*"/-->
	<xsl:variable name="controlHash"><xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/></xsl:variable>
	<xsl:variable name="menuConst"><xsl:value-of select="$controlHash"/>_<xsl:value-of select="/MenuDataResult/Info/ControlMenuId"/>_</xsl:variable>
	<xsl:variable name="masterHash"><xsl:value-of select="/MenuDataResult/Info/MasterControlIdHash"/></xsl:variable>
	<xsl:variable name="buttonNoScriptLink"><xsl:value-of select="/MenuDataResult/Info/ButtonNoScriptLink"/></xsl:variable>
	<xsl:variable name="slaveMenu"><xsl:value-of select="/MenuDataResult/Info/IsSlaveControl"/></xsl:variable>
	<xsl:variable name="startLevel"><xsl:value-of select="/MenuDataResult/Info/StartLevel"/></xsl:variable>



    <xsl:template match="/">
        <xsl:copy-of select="."/>
        <xsl:apply-templates select="MenuDataResult/Item"/>
    </xsl:template>

    <!-- First level <Item> node - there is only one; everything else is contained in it -->
    <!-- So this is linking in the css and setting up the div's and their classes -->
	<xsl:template match="Item[parent::MenuDataResult]">
		<xsl:choose>
			<xsl:when test="/MenuDataResult/Info/MenuFragment='false'">
				<xsl:if test="/MenuDataResult/Info/UseCssHardLink='true'">
				<link type="text/css" rel="stylesheet">
					<xsl:attribute name="href"><xsl:value-of select="/MenuDataResult/Info/CssFileName"/></xsl:attribute>
				</link>
				</xsl:if>

				<div>
					<xsl:attribute name="class"><xsl:value-of select="/MenuDataResult/Info/WrappingClassName"/></xsl:attribute>
					<div>
						<xsl:attribute name="class">ekflexmenu</xsl:attribute>
						<xsl:attribute name="id"><xsl:value-of select="$menuConst"/>0_ekflexmenu</xsl:attribute>
						<xsl:if test="/MenuDataResult/Info/EnableMouseOverPopUp = 'true'">
							<xsl:attribute name="onmouseover">return (ekFlexMenuPopupMsIn(event));</xsl:attribute>
							<xsl:attribute name="onmouseout">return (ekFlexMenuPopupMsOut(event));</xsl:attribute>
						</xsl:if>
						<div>
							<xsl:attribute name="class">ekflexmenu_menu_level_0<xsl:text xml:space="preserve"> </xsl:text>ekflexmenu_submenu</xsl:attribute>
							<ul>
								<xsl:attribute name="class">ekflexmenu_submenu_items</xsl:attribute>
								<xsl:attribute name="id"><xsl:value-of select="$menuConst"/>0_submenu_items</xsl:attribute>
								<xsl:apply-templates select="Item"/>
							</ul>
						</div>
					</div>
				</div>
				<xsl:call-template name="addJavascript"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:apply-templates select="Item"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

    <!-- (<Item> node that contains a <Menu> node) OR (<Item> node that has ItemType of Submenu) -->
	<xsl:template match="Item[child::Menu | ItemType='Submenu']">
		<li>
			<xsl:attribute name="class">ekflexmenu_menu_level_<xsl:value-of select="ItemLevel"/><xsl:text xml:space="preserve"> </xsl:text>ekflexmenu_submenu<xsl:if test="(number(ItemLevel) = number($startLevel))"><xsl:text xml:space="preserve"> </xsl:text>ekflexmenu_startlevel</xsl:if></xsl:attribute>
			<xsl:attribute name="id"><xsl:value-of select="./Menu/MenuIdString"/></xsl:attribute>
			<!-- <xsl:apply-templates select="Menu"/> -->
			<xsl:apply-templates 
			select="Menu[descendant-or-self::MenuSelected='true']"/>
		</li>
	</xsl:template>

    <!-- Any <Menu> node -->
   <xsl:template name="makelist" match="Menu"> 
        <xsl:call-template name="makeButton" />
		<xsl:if test="./Item/Menu[MenuId!=''] | ./Item[ItemId!=''][ItemType!='Submenu'] ">
			<ul>
				<xsl:attribute name="id"><xsl:value-of select="MenuIdString"/>_submenu_items</xsl:attribute>
				<xsl:choose>
					<xsl:when test="MenuSelected='true' and /MenuDataResult/Info/EnableSmartOpen='true'">
						<xsl:attribute name="class">ekflexmenu_submenu_items</xsl:attribute>
					</xsl:when>
					<xsl:when test="ChildMenuSelected='true' and /MenuDataResult/Info/EnableSmartOpen='true'">
						<xsl:attribute name="class">ekflexmenu_submenu_items</xsl:attribute>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="/MenuDataResult/Info/StartCollapsed='true'">
						<xsl:attribute name="class">ekflexmenu_submenu_items_hidden</xsl:attribute>
							</xsl:when>
							<xsl:otherwise>
								<xsl:attribute name="class">ekflexmenu_submenu_items</xsl:attribute>
					</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:apply-templates select="Item"/>
			</ul>
		</xsl:if>
	</xsl:template>

    <!-- Any <Item> node whose ItemType is not Submenu -->
	<xsl:template match="Item[ItemType!='Submenu']">
		<li>
			<xsl:variable name="targetLoc">
				<xsl:choose>
					<xsl:when test="ItemTarget='1'">_blank</xsl:when>
					<xsl:when test="ItemTarget='3'">_parent</xsl:when>
					<xsl:when test="ItemTarget='4'">_top</xsl:when>
					<xsl:otherwise>_self</xsl:otherwise>
				</xsl:choose>
			</xsl:variable>

			<a>
				<xsl:choose>
					<xsl:when test="ItemSelected='true'">
						<xsl:attribute name="class">ekflexmenu_link_selected</xsl:attribute>
					</xsl:when>
					<xsl:otherwise>
				<xsl:attribute name="class">ekflexmenu_link</xsl:attribute>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="ItemType='Javascript'">
						<xsl:attribute name="onclick">
							Javascript:<xsl:value-of select="ItemLink"/>;return false;
						</xsl:attribute>
						<xsl:attribute name="href">#NoScroll</xsl:attribute>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="not(ItemLink='')">
								<xsl:attribute name="href">
									<xsl:value-of select="ItemLink"/>
								</xsl:attribute>
							</xsl:when>
							<xsl:otherwise>
								<xsl:attribute name="href">#NoScroll</xsl:attribute>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:attribute name="target">
					<xsl:value-of select="$targetLoc"/>
				</xsl:attribute>
				<xsl:if test="not(ItemImage='')">
					<img>
						<xsl:attribute name="border">0</xsl:attribute>
						<xsl:attribute name="src">
							<xsl:value-of select="ItemImage"/>
						</xsl:attribute>
					</img>
				</xsl:if>
				<xsl:if test="not(ItemImageOverride='true')">
					<xsl:text> </xsl:text>
					<xsl:value-of select="ItemTitle"/>
				</xsl:if>
			</a>
			<xsl:apply-templates select="Item|Menu"/>
        </li>
	</xsl:template>

    <!-- Applies to any node that matches the if test -->
    <!-- In our case, $slave is always False; MenuFragment is always False; 
        MenuLevel=1 for top-level menus (Cost Savings, HR, Marketing, etc)
        MenuLevel=2 for any submenus below those
        So this applies whenever all three conditions are NOT met, which in our case is always 
        This template is called by the "Makelist" template that only applies to <Menu> nodes 
        So bottom line is that this is used on all of our <Menu> nodes -->
	<xsl:template name="makeButton">
		<xsl:if test="not((/MenuDataResult/Info/MenuFragment='true') and (MenuLevel = '1') and $slaveMenu='true')">
			<a>
				<xsl:attribute name="id"><xsl:value-of select="MenuIdString"/>_button</xsl:attribute>
				<xsl:attribute name="tabindex">0</xsl:attribute>
				<xsl:attribute name="onkeydown">return (ekFlexMenuKey(event));</xsl:attribute>
				<xsl:attribute name="onblur">return (ekFlexMenuMsOut(event));</xsl:attribute>
				<xsl:attribute name="onfocus">return (ekFlexMenuMsOvr(event));</xsl:attribute>
				<xsl:attribute name="onclick">return (ekFlexMenuClk(event));</xsl:attribute>
				<xsl:attribute name="onmouseover">return (ekFlexMenuMsOvr(event));</xsl:attribute>
				<xsl:attribute name="onmouseout">return (ekFlexMenuMsOut(event));</xsl:attribute>
				<xsl:choose>
					<xsl:when test="MenuSelected='true'">
						<xsl:attribute name="class">ekflexmenu_button_selected</xsl:attribute>
					</xsl:when>
					<xsl:when test="ChildMenuSelected='true'">
						<xsl:attribute name="class">ekflexmenu_button_selected</xsl:attribute>
					</xsl:when>
					<xsl:otherwise>
						<xsl:attribute name="class">ekflexmenu_button</xsl:attribute>
					</xsl:otherwise>
				</xsl:choose>
					<xsl:choose>
					<xsl:when test="Link=''">
						<xsl:attribute name="href"><xsl:value-of select="$buttonNoScriptLink"/><xsl:value-of select="MenuIdString"/></xsl:attribute>
					</xsl:when>
					<xsl:otherwise>
						<xsl:attribute name="href">
							<xsl:value-of select="Link"/>
						</xsl:attribute>
					</xsl:otherwise>
				</xsl:choose>

				<xsl:if test="not(Image='')">
					<img>
						<xsl:attribute name="border">0</xsl:attribute>
						<xsl:attribute name="src">
							<xsl:value-of select="Image"/>
						</xsl:attribute>
					</img>
				</xsl:if>
				<xsl:if test="not(ImageOverride='true')">
					<xsl:value-of select="Title"/>
				</xsl:if>
			</a>
        </xsl:if>
		<input type="hidden">
			<xsl:attribute name="id"><xsl:value-of select="MenuIdString"/>_parentid</xsl:attribute>
			<xsl:choose>
				<xsl:when test="$slaveMenu='true' and (MenuLevel = '1')">
					<xsl:attribute name="value"><xsl:value-of select="$masterHash"/>_<xsl:value-of select="/MenuDataResult/Info/ControlMenuId"/>_<xsl:value-of select="ParentId"/></xsl:attribute>
				</xsl:when>
				<xsl:otherwise>
					<xsl:attribute name="value"><xsl:value-of select="$menuConst"/><xsl:value-of select="ParentId"/></xsl:attribute>
				</xsl:otherwise>
			</xsl:choose>
		</input>
	</xsl:template>

	<xsl:template name="addJavascript">
		<script language="JavaScript" type="text/javascript">
			// Pass server control properties, etc., to Javascript:
			if (("undefined" == typeof window.ekFlexMenu_ekflexmenuArray)
				|| (null == window.ekFlexMenu_ekflexmenuArray)) {
				window.ekFlexMenu_ekflexmenuArray = new Array;
			}
			window.ekFlexMenu_ekflexmenuArray[window.ekFlexMenu_ekflexmenuArray.length] = "<xsl:value-of select="$menuConst"/>0";
			//
			if (("undefined" == typeof window.ekFlexMenu_swRev)
			|| (null == window.ekFlexMenu_swRev)) {
			window.ekFlexMenu_swRev = new Array;
			}
			window.ekFlexMenu_swRev["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/SWRevision"/>";
			//
			if (("undefined" == typeof window.ekFlexMenu_startupSubmenuBranchId)
			|| (null == window.ekFlexMenu_startupSubmenuBranchId)) {
			window.ekFlexMenu_startupSubmenuBranchId = new Array;
			}
			window.ekFlexMenu_startupSubmenuBranchId["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "";
			//
			if (("undefined" == typeof window.ekFlexMenu_autoCollapseBranches)
			|| (null == window.ekFlexMenu_autoCollapseBranches)) {
			window.ekFlexMenu_autoCollapseBranches = new Array;
			}
			window.ekFlexMenu_autoCollapseBranches["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/AutoCollapseBranches"/>";
			//
			if (("undefined" == typeof window.ekFlexMenu_startCollapsed)
			|| (null == window.ekFlexMenu_startCollapsed)) {
			window.ekFlexMenu_startCollapsed = new Array;
			}
			window.ekFlexMenu_startCollapsed["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/StartCollapsed"/>";
			//
			if (("undefined" == typeof window.ekFlexMenu_startWithRootFolderCollapsed)
				|| (null == window.ekFlexMenu_startWithRootFolderCollapsed)) {
				window.ekFlexMenu_startWithRootFolderCollapsed = new Array;
			}
			window.ekFlexMenu_startWithRootFolderCollapsed["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "false";
			//
			if (("undefined" == typeof window.ekFlexMenu_masterControlIdHash)
				|| (null == window.ekFlexMenu_masterControlIdHash)) {
				window.ekFlexMenu_masterControlIdHash = new Array;
			}
			window.ekFlexMenu_masterControlIdHash["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/MasterControlIdHash"/>";
			<xsl:if test="not($masterHash = '')">
				//
				if (("undefined" == typeof window.ekFlexMenu_subscriberList)
				|| (null == window.ekFlexMenu_subscriberList)) {
				window.ekFlexMenu_subscriberList = new Array;
				}
				if ("undefined" == typeof window.ekFlexMenu_subscriberList["<xsl:value-of select="/MenuDataResult/Info/MasterControlIdHash"/>"]) {
				window.ekFlexMenu_subscriberList["<xsl:value-of select="/MenuDataResult/Info/MasterControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>";
				}
				else {
				window.ekFlexMenu_subscriberList["<xsl:value-of select="/MenuDataResult/Info/MasterControlIdHash"/>"] += ",<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>";
				}
			</xsl:if>
			//
			if (("undefined" == typeof window.ekFlexMenu_ajaxEnabled)
			|| (null == window.ekFlexMenu_ajaxEnabled)) {
			window.ekFlexMenu_ajaxEnabled = new Array;
			}
			window.ekFlexMenu_ajaxEnabled["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/AjaxEnabled"/>";
			//
			if (("undefined" == typeof window.ekFlexMenu_ajaxWSPath)
			|| (null == window.ekFlexMenu_ajaxWSPath)) {
			window.ekFlexMenu_ajaxWSPath = new Array;
			}
			window.ekFlexMenu_ajaxWSPath["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/AppPath"/>webservices/";
			// 
			if (("undefined" == typeof window.ekFlexMenu_displayXslt)
			|| (null == window.ekFlexMenu_displayXslt)) {
			window.ekFlexMenu_displayXslt = new Array;
			}
			window.ekFlexMenu_displayXslt["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/XslFileName"/>";
			//
			if (("undefined" == typeof window.ekFlexMenu_cacheInterval)
			|| (null == window.ekFlexMenu_cacheInterval)) {
			window.ekFlexMenu_cacheInterval = new Array;
			}
			window.ekFlexMenu_cacheInterval["<xsl:value-of select="/MenuDataResult/Info/ControlIdHash"/>"] = "<xsl:value-of select="/MenuDataResult/Info/CacheInterval"/>";
			//
			//////////////////////////////////////////////////////////////////
			// Add event handler calling functions:
			//   Test to ensure that ekFlexMenu is valid/reachable (this is needed 
			//   to prevent intermittent Javascript errors that can occur if user
			//   causes event to fire while page is being torn down (i.e. a link is
			//   clicked, browser is fetching new page, movement causes mouse-out...):
			function ekFlexMenu_IsValid(obj) {
				return (("undefined" != typeof obj) <xsl:text disable-output-escaping="yes">&amp;&amp;</xsl:text> (null != obj));
			}
			function ekFlexMenuPopupMsIn(event) {
				if (ekFlexMenu_IsValid(ekFlexMenu) <xsl:text disable-output-escaping="yes">&amp;&amp;</xsl:text> ekFlexMenu_IsValid(ekFlexMenu.mouseIn)) {
					return (ekFlexMenu.mouseIn(event));
				}
				return (true);
			}
			function ekFlexMenuPopupMsOut(event) {
				if (ekFlexMenu_IsValid(ekFlexMenu) <xsl:text disable-output-escaping="yes">&amp;&amp;</xsl:text> ekFlexMenu_IsValid(ekFlexMenu.mouseOut)) {
					return (ekFlexMenu.mouseOut(event));
				}
				return (true);
			}
			function ekFlexMenuKey(event) {
				if (ekFlexMenu_IsValid(ekFlexMenu) <xsl:text disable-output-escaping="yes">&amp;&amp;</xsl:text> ekFlexMenu_IsValid(ekFlexMenu.menuBtnKeyHdlr)) {
					return (ekFlexMenu.menuBtnKeyHdlr(event));
				}
				return (true);
			}
			function ekFlexMenuMsOut(event) {
				if (ekFlexMenu_IsValid(ekFlexMenu) <xsl:text disable-output-escaping="yes">&amp;&amp;</xsl:text> ekFlexMenu_IsValid(ekFlexMenu.menuBtnMouseOutHdlr)) {
					return (ekFlexMenu.menuBtnMouseOutHdlr(event));
				}
				return (true);
			}
			function ekFlexMenuMsOvr(event) {
				if (ekFlexMenu_IsValid(ekFlexMenu) <xsl:text disable-output-escaping="yes">&amp;&amp;</xsl:text> ekFlexMenu_IsValid(ekFlexMenu.menuBtnMouseOverHdlr)) {
					return (ekFlexMenu.menuBtnMouseOverHdlr(event));
				}
				return (true);
			}
			function ekFlexMenuClk(event) {
				if (ekFlexMenu_IsValid(ekFlexMenu) <xsl:text disable-output-escaping="yes">&amp;&amp;</xsl:text> ekFlexMenu_IsValid(ekFlexMenu.menuBtnClickHdlr)) {
					return (ekFlexMenu.menuBtnClickHdlr(event));
				}
				return (true);
			}
		</script>
		<xsl:if test="/MenuDataResult/Info/UseJavascriptHardLink='true'">
		<script language="javascript" type="text/javascript">
			<xsl:attribute name="src"><xsl:value-of select="/MenuDataResult/Info/AppPath"/>java/ek_flexmenu.js</xsl:attribute>
		</script>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>

Open in new window

Comment
Watch Question

Author

Commented:
This is the XML. Search for "selected>true" and you'll get to the area of interest.
When the "Marketing" <Menu> node is selected, I'm getting all the <Item> nodes under it but I'm not getting the <Menu> node with title=Level 2 and I do want that and all of its <Item>'s.

<MenuDataResult>
    <Info>
        <ControlMenuId>17</ControlMenuId>
        <CssFileName>/css/leftmenu.css</CssFileName>
        <XslFileName>/xsl/leftmenu.xsl</XslFileName>
        <WrappingClassName>leftmenu</WrappingClassName>
        <ControlId>fm2</ControlId>
        <ControlIdHash>efcc5408a</ControlIdHash>
        <MasterControlIdHash></MasterControlIdHash>
        <GroupId></GroupId>
        <AppPath>/WorkArea/</AppPath>
        <SitePath>/</SitePath>
        <ButtonNoScriptLink>http://dev.ccafsgmembers.net/ThreeColumnLeftMenu.aspx?pageid=304&amp;ekfxmen_noscript=1&amp;ekfxmensel=</ButtonNoScriptLink>
        <AjaxEnabled>false</AjaxEnabled>
        <MenuFragment>false</MenuFragment>
        <AutoCollapseBranches>true</AutoCollapseBranches>
        <StartCollapsed>true</StartCollapsed>
        <EnableSmartOpen>false</EnableSmartOpen>
        <EnableMouseOverPopUp>false</EnableMouseOverPopUp>
        <IsSlaveControl>false</IsSlaveControl>
        <StartLevel>1</StartLevel>
        <MenuDepth>0</MenuDepth>
        <SelectLevel>1</SelectLevel>
        <SelectMenuIdString>efcc5408a_17_29</SelectMenuIdString>
        <SelectItemIdString></SelectItemIdString>
        <SlaveStartLevelIds></SlaveStartLevelIds>
        <DefaultMenuIdString></DefaultMenuIdString>
        <SWRevision>8.0.0.073</SWRevision>
        <CacheInterval>0</CacheInterval>
        <UseCssHardLink>true</UseCssHardLink>
        <UseJavascriptHardLink>false</UseJavascriptHardLink>
    </Info>
    <Item>
        <Item>
            <ItemId>76</ItemId>
            <ItemType>ExternalLink</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Home</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_17_76</ItemIdString>
            <ItemLink>/default.aspx</ItemLink>
            <ItemQuickLink>/default.aspx</ItemQuickLink>
            <ItemTarget>2</ItemTarget>
        </Item>
        <Item>
            <ItemId>24</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Cost Savings</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_24_24</ItemIdString>
            <Menu>
                <MenuId>24</MenuId>
                <Title>Cost Savings</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/Cost_Savings.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_24</MenuIdString>
                <MenuSelected>false</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
                <Item>
                    <ItemId>312</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>CCA Real Estate Services</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_312</ItemIdString>
                    <ItemLink>/real_estate_services.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=312</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>313</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Chase Paymentech</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_313</ItemIdString>
                    <ItemLink>/payment_processing.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=313</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>314</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>FedEx</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_314</ItemIdString>
                    <ItemLink>/fedex.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=314</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>315</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Orbitz Travel</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_315</ItemIdString>
                    <ItemLink>/travel.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=315</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>316</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>PC Connection</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_316</ItemIdString>
                    <ItemLink>/software.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=316</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>317</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Sprint</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_317</ItemIdString>
                    <ItemLink>/mobile_communications.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=317</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>318</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Staples</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_318</ItemIdString>
                    <ItemLink>/office_supplies.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=318</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>319</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Web.com</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_24_319</ItemIdString>
                    <ItemLink>/websites.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=319</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
            </Menu>
        </Item>
        <Item>
            <ItemId>26</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>HR</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_26_26</ItemIdString>
            <Menu>
                <MenuId>26</MenuId>
                <Title>HR</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/human_resources.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_26</MenuIdString>
                <MenuSelected>false</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
                <Item>
                    <ItemId>320</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Background Checks</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_320</ItemIdString>
                    <ItemLink>/Background_Checks.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=320</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>321</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Drug Testing</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_321</ItemIdString>
                    <ItemLink>/Drug_Testing.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=321</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>322</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Employee Goals</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_322</ItemIdString>
                    <ItemLink>/Employee_Goals.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=322</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>323</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Employee Handbook</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_323</ItemIdString>
                    <ItemLink>/Employee_Handbook.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=323</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>324</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Employee Orientation</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_324</ItemIdString>
                    <ItemLink>/Employee_Orientation.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=324</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>325</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Employee Perks</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_325</ItemIdString>
                    <ItemLink>/Employee_Perks.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=325</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>326</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Employee Sprint Program</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_326</ItemIdString>
                    <ItemLink>/Employee_Sprint_Program.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=326</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>327</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Employee Termination</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_327</ItemIdString>
                    <ItemLink>/Employee_Termination.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=327</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>329</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Interview Guides</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_329</ItemIdString>
                    <ItemLink>/Interview_Guides.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=329</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>330</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Job Ads</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_330</ItemIdString>
                    <ItemLink>/Job_Ads.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=330</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>331</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Job Descriptions</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_331</ItemIdString>
                    <ItemLink>/Job_Descriptions.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=331</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>331</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Job Descriptions</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_331</ItemIdString>
                    <ItemLink>/Job_Descriptions.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=331</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>332</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Monster.com</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_332</ItemIdString>
                    <ItemLink>/monster_com.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=332</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>333</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Performance Appraisals</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_333</ItemIdString>
                    <ItemLink>/Performance_Appraisals.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=333</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>334</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Volunteer Management</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_26_334</ItemIdString>
                    <ItemLink>/Volunteer_Management.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=334</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
            </Menu>
        </Item>
        <Item>
            <ItemId>27</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Insurance</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_27_27</ItemIdString>
            <Menu>
                <MenuId>27</MenuId>
                <Title>Insurance</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/insurance.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_27</MenuIdString>
                <MenuSelected>false</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
            </Menu>
        </Item>
        <Item>
            <ItemId>29</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Marketing</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_29_29</ItemIdString>
            <Menu>
                <MenuId>29</MenuId>
                <Title>Marketing</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/marketing.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_29</MenuIdString>
                <MenuSelected>true</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
                <Item>
                    <ItemId>337</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Demographics</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_29_337</ItemIdString>
                    <ItemLink>/Demographics.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=337</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>338</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Direct Mail</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_29_338</ItemIdString>
                    <ItemLink>/Direct_Mail.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=338</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>339</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Email</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_29_339</ItemIdString>
                    <ItemLink>/Email.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=339</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>340</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>How To's</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_29_340</ItemIdString>
                    <ItemLink>/How_To.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=340</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>341</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>More Templates</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_29_341</ItemIdString>
                    <ItemLink>/More_Templates.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=341</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>342</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Stationery</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_29_342</ItemIdString>
                    <ItemLink>/Stationery.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=342</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>82</ItemId>
                    <ItemType>Submenu</ItemType>
                    <ItemSubType>0</ItemSubType>
                    <ItemTitle>Level 2 &gt;&gt;</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_82_82</ItemIdString>
                    <Menu>
                        <MenuId>82</MenuId>
                        <Title>Level 2 &gt;&gt;</Title>
                        <Template></Template>
                        <Type>content</Type>
                        <Link />
                        <ParentId>29</ParentId>
                        <AncestorId>17</AncestorId>
                        <FolderId>0</FolderId>
                        <Description></Description>
                        <Image></Image>
                        <ImageOverride>false</ImageOverride>
                        <MenuIdString>efcc5408a_17_82</MenuIdString>
                        <MenuSelected>false</MenuSelected>
                        <MenuLevel>2</MenuLevel>
                        <ChildMenuSelected>false</ChildMenuSelected>
                        <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
                        <Item>
                            <ItemId>345</ItemId>
                            <ItemType>content</ItemType>
                            <ItemSubType>1</ItemSubType>
                            <ItemTitle>About Us</ItemTitle>
                            <ItemDescription></ItemDescription>
                            <ItemImage></ItemImage>
                            <ItemImageOverride>false</ItemImageOverride>
                            <ItemSelected>false</ItemSelected>
                            <ItemLevel>3</ItemLevel>
                            <ItemIdString>efcc5408a_17_82_345</ItemIdString>
                            <ItemLink>/about.aspx</ItemLink>
                            <ItemQuickLink>/TwoColumnLeft.aspx?pageid=345</ItemQuickLink>
                            <ItemTarget>2</ItemTarget>
                        </Item>
                        <Item>
                            <ItemId>347</ItemId>
                            <ItemType>content</ItemType>
                            <ItemSubType>1</ItemSubType>
                            <ItemTitle>Privacy Policy</ItemTitle>
                            <ItemDescription></ItemDescription>
                            <ItemImage></ItemImage>
                            <ItemImageOverride>false</ItemImageOverride>
                            <ItemSelected>false</ItemSelected>
                            <ItemLevel>3</ItemLevel>
                            <ItemIdString>efcc5408a_17_82_347</ItemIdString>
                            <ItemLink>/privacy.aspx</ItemLink>
                            <ItemQuickLink>/TwoColumnLeft.aspx?pageid=347</ItemQuickLink>
                            <ItemTarget>2</ItemTarget>
                        </Item>
                        <Item>
                            <ItemId>348</ItemId>
                            <ItemType>content</ItemType>
                            <ItemSubType>1</ItemSubType>
                            <ItemTitle>Terms of Service</ItemTitle>
                            <ItemDescription></ItemDescription>
                            <ItemImage></ItemImage>
                            <ItemImageOverride>false</ItemImageOverride>
                            <ItemSelected>false</ItemSelected>
                            <ItemLevel>3</ItemLevel>
                            <ItemIdString>efcc5408a_17_82_348</ItemIdString>
                            <ItemLink>/terms.aspx</ItemLink>
                            <ItemQuickLink>/TwoColumnLeft.aspx?pageid=348</ItemQuickLink>
                            <ItemTarget>2</ItemTarget>
                        </Item>
                        <Item>
                            <ItemId>2147483898</ItemId>
                            <ItemType>content</ItemType>
                            <ItemSubType>1</ItemSubType>
                            <ItemTitle>Admin Page</ItemTitle>
                            <ItemDescription></ItemDescription>
                            <ItemImage></ItemImage>
                            <ItemImageOverride>false</ItemImageOverride>
                            <ItemSelected>false</ItemSelected>
                            <ItemLevel>3</ItemLevel>
                            <ItemIdString>efcc5408a_17_82_2147483898</ItemIdString>
                            <ItemLink>/Admin_Page.aspx</ItemLink>
                            <ItemQuickLink>/TwoColumnLeft.aspx?pageid=2147483898</ItemQuickLink>
                            <ItemTarget>2</ItemTarget>
                        </Item>
                        <Item>
                            <ItemId>349</ItemId>
                            <ItemType>content</ItemType>
                            <ItemSubType>1</ItemSubType>
                            <ItemTitle>Contact Us</ItemTitle>
                            <ItemDescription></ItemDescription>
                            <ItemImage></ItemImage>
                            <ItemImageOverride>false</ItemImageOverride>
                            <ItemSelected>false</ItemSelected>
                            <ItemLevel>3</ItemLevel>
                            <ItemIdString>efcc5408a_17_82_349</ItemIdString>
                            <ItemLink>/Contact_Us.aspx</ItemLink>
                            <ItemQuickLink>/TwoColumnLeft.aspx?pageid=349</ItemQuickLink>
                            <ItemTarget>2</ItemTarget>
                        </Item>
                        <Item>
                            <ItemId>364</ItemId>
                            <ItemType>content</ItemType>
                            <ItemSubType>1</ItemSubType>
                            <ItemTitle>No Access</ItemTitle>
                            <ItemDescription></ItemDescription>
                            <ItemImage></ItemImage>
                            <ItemImageOverride>false</ItemImageOverride>
                            <ItemSelected>false</ItemSelected>
                            <ItemLevel>3</ItemLevel>
                            <ItemIdString>efcc5408a_17_82_364</ItemIdString>
                            <ItemLink>/No_Access.aspx</ItemLink>
                            <ItemQuickLink>/TwoColumnLeft.aspx?pageid=364</ItemQuickLink>
                            <ItemTarget>2</ItemTarget>
                        </Item>
                        <Item>
                            <ItemId>308</ItemId>
                            <ItemType>content</ItemType>
                            <ItemSubType>1</ItemSubType>
                            <ItemTitle>Fundraising</ItemTitle>
                            <ItemDescription></ItemDescription>
                            <ItemImage></ItemImage>
                            <ItemImageOverride>false</ItemImageOverride>
                            <ItemSelected>false</ItemSelected>
                            <ItemLevel>3</ItemLevel>
                            <ItemIdString>efcc5408a_17_82_308</ItemIdString>
                            <ItemLink>/fundraising.aspx</ItemLink>
                            <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=308</ItemQuickLink>
                            <ItemTarget>2</ItemTarget>
                        </Item>
                    </Menu>
                </Item>
            </Menu>
        </Item>
        <Item>
            <ItemId>46</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Fundraising</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_46_46</ItemIdString>
            <Menu>
                <MenuId>46</MenuId>
                <Title>Fundraising</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/fundraising.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_46</MenuIdString>
                <MenuSelected>false</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
            </Menu>
        </Item>
        <Item>
            <ItemId>45</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Training</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_45_45</ItemIdString>
            <Menu>
                <MenuId>45</MenuId>
                <Title>Training</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/training.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_45</MenuIdString>
                <MenuSelected>false</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
            </Menu>
        </Item>
        <Item>
            <ItemId>28</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Library</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_28_28</ItemIdString>
            <Menu>
                <MenuId>28</MenuId>
                <Title>Library</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/library.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_28</MenuIdString>
                <MenuSelected>false</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
                <Item>
                    <ItemId>335</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Board Best Practices</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_28_335</ItemIdString>
                    <ItemLink>/Board_Best_Practices.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=335</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>336</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Go Green</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_28_336</ItemIdString>
                    <ItemLink>/Go_Green.aspx</ItemLink>
                    <ItemQuickLink>/ThreeColumnLeftMenu.aspx?pageid=336</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
            </Menu>
        </Item>
        <Item>
            <ItemId>21</ItemId>
            <ItemType>Submenu</ItemType>
            <ItemSubType>0</ItemSubType>
            <ItemTitle>Community</ItemTitle>
            <ItemDescription></ItemDescription>
            <ItemImage></ItemImage>
            <ItemImageOverride>false</ItemImageOverride>
            <ItemSelected>false</ItemSelected>
            <ItemLevel>1</ItemLevel>
            <ItemIdString>efcc5408a_17_21_21</ItemIdString>
            <Menu>
                <MenuId>21</MenuId>
                <Title>Community</Title>
                <Template></Template>
                <Type>content</Type>
                <Link>/connect.aspx</Link>
                <ParentId>17</ParentId>
                <AncestorId>17</AncestorId>
                <FolderId>0</FolderId>
                <Description></Description>
                <Image></Image>
                <ImageOverride>false</ImageOverride>
                <MenuIdString>efcc5408a_17_21</MenuIdString>
                <MenuSelected>false</MenuSelected>
                <MenuLevel>1</MenuLevel>
                <ChildMenuSelected>false</ChildMenuSelected>
                <ChildMenuSelRelDepth>0</ChildMenuSelRelDepth>
                <Item>
                    <ItemId>263</ItemId>
                    <ItemType>ExternalLink</ItemType>
                    <ItemSubType>0</ItemSubType>
                    <ItemTitle>My Profile New</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_263</ItemIdString>
                    <ItemLink>/userworkspace.aspx</ItemLink>
                    <ItemQuickLink>/userworkspace.aspx</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>260</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Find A Colleague</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_260</ItemIdString>
                    <ItemLink>/findacolleague.aspx</ItemLink>
                    <ItemQuickLink>/community-search.aspx?id=260</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>263</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>My Messages</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_263</ItemIdString>
                    <ItemLink>/messages.aspx</ItemLink>
                    <ItemQuickLink>/messages.aspx?id=263</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>262</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>My Groups</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_262</ItemIdString>
                    <ItemLink>/mygroups.aspx</ItemLink>
                    <ItemQuickLink>/mygroups.aspx?id=262</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>258</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Ask A Question</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_258</ItemIdString>
                    <ItemLink>/askaquestion.aspx?g=pmessage</ItemLink>
                    <ItemQuickLink>/messages.aspx?id=258</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>257</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>All Community Groups</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_257</ItemIdString>
                    <ItemLink>/groups.aspx</ItemLink>
                    <ItemQuickLink>/groups.aspx?id=257</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>259</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Create A Group</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_259</ItemIdString>
                    <ItemLink>/createagroup.aspx</ItemLink>
                    <ItemQuickLink>/createagroup.aspx?id=259</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
                <Item>
                    <ItemId>261</ItemId>
                    <ItemType>content</ItemType>
                    <ItemSubType>1</ItemSubType>
                    <ItemTitle>Go to Forums</ItemTitle>
                    <ItemDescription></ItemDescription>
                    <ItemImage></ItemImage>
                    <ItemImageOverride>false</ItemImageOverride>
                    <ItemSelected>false</ItemSelected>
                    <ItemLevel>2</ItemLevel>
                    <ItemIdString>efcc5408a_17_21_261</ItemIdString>
                    <ItemLink>/Forums.aspx?id=261</ItemLink>
                    <ItemQuickLink>/Forums.aspx?id=261</ItemQuickLink>
                    <ItemTarget>2</ItemTarget>
                </Item>
            </Menu>
        </Item>
    </Item>
</MenuDataResult>

Open in new window

Author

Commented:
Above comment: the item of interest starts at line 495.
Information Architect
Top Expert 2006
Commented:
<xsl:apply-templates select="Menu[descendant-or-self::MenuSelected='true']  "/>
will only access the direct childs of the current context
so you will need the descendant on the Menu, not on its MenuSelected child

<xsl:apply-templates select="descendant::Menu[MenuSelected='true']  "/>

Author

Commented:
I tried this and get same as before:
<xsl:apply-templates select="descendant::Menu[MenuSelected='true'] "/>

I tried this and it brought down my server!
<xsl:apply-templates select="descendant::Menu[MenuSelected='true'] | ancestor::Menu[MenuSelected='true']"/>
Gertone (Geert Bormans)Information Architect
Top Expert 2006
Commented:
om my machine it definitely makes a difference, and the XPath I posted gets the node

your second proposal is trying to get all Menu both downwards and upwards
upwards is expensive,
the totla is equivalent to
<xsl:apply-templates select="//Menu[MenuSelected='true']"/>
which is "getting them all downwards, but start from the root
That one will not break your server
Gertone (Geert Bormans)Information Architect
Top Expert 2006

Commented:
I think it would help if you handcrafted a result file, indicating what exactly you want changed in the result,
since this question is a bit dubious

Author

Commented:
Sorry - I have been traveling and have not been able to work on this. I plan to get back to it today. Thanks.

Author

Commented:
It's now over three months later and I haven't been able to work on this and no additonal comments have been added. Time to wrap this up. I am going to ask to just have it closed.

Gertone (Geert Bormans)Information Architect
Top Expert 2006

Commented:
you can't close it just like that sorry,
this question has not proceeded because of your lack of time.

My proposed changes definitely have the desired effect on the 4 or 5 XSLT processors I tested it with,
Gertone (Geert Bormans)Information Architect
Top Expert 2006

Commented:
never had a clear response on what exactly wasn't working in my first response,
and never actually got a serious comment on my second response

"and no additonal comments have been added." of course not, the ball was in your camp

From what I understood in the original questions and the tests I made on the "so called" non working code...
accept: http:#a32959262
assist: http:#a32962819

Author

Commented:
Sorry for the confusion. I do admit that this did not move forward due to my lack of time; I never meant to imply otherwise.