Hi,
i have a fairly simple question concerning the XSLT-Syntax:
I want to check my nodes for two attributes, the "@nodeTypeAlias" and "umbracoNaviHide".
I thought of something like the following code, but obviously the "&" doesn't work out ( i tried some other variants, too) and i don't know how to write it correctly:
Code:
<xsl:for-each select="$currentPage/ancestor::root/descendant-or-self::node[@nodeTypeAlias = 'MainContent'] & [string(data [@alias='umbracoNaviHide']) != '1']">
Can someone please give me the right code for this?
And Is there a shorter way to select the root node or is the $currentPage neccessary in Umbraco?
Greetings,
Electric-Ric