Hmm,
It _looks_ ok, but we all must have missed something.
Make the for-each loop even simpler then:
Code:
<ul>
<xsl:for-each select="GetXmlAll()/node">
<li><xsl:value-of select="@nodeTypeAlias" /></li>
</xsl:for-each>
</ul>
Hope to see all nodes, and especially those with nodeTypeAlias='frontPageSpotlight'.
Is that working? Ok, let's move on then:
Code:<ul>
<xsl:for-each select="GetXmlAll()/node [@nodeTypeAlias = 'frontPageSpotlight']">
<li><xsl:value-of select="@nodeTypeAlias" /></li>
</xsl:for-each>
</ul>
Now you should only get 2 right (Including the one set to hidden)?
If that is working, move on and take it one step further...
Code:
<ul>
<xsl:for-each select="GetXmlAll()/node [@nodeTypeAlias = 'frontPageSpotlight'] string(./data[@alias='umbracoNaviHide'] != '1' ">
<li><xsl:value-of select="@nodeTypeAlias" /></li>
</xsl:for-each>
</ul>
Is it working (Only one should be visible, right)? Take it to the next level... I guess you know the drill now!
Idea is to introduce the variable the latest as possible and only rely on hard coded values.
If you can get this to work, then you only need to substitute the hard coded values by its variable counterpart.
Hope this helps.
Regards,
/Dirk
level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at
netaddicts.be - working on an integrated forum4umbraco