<xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) != '1']"> <xsl:for-each select="current()/* [@isDoc and string(umbracoNaviHide) != '1']"> <xsl:if test="position() = 1"> { i am the first } </xsl:if> </xsl:for-each> </xsl:for-each>
node's first child node
hello friends,
i have subnodes(say 10 subnodes) .each subnodes have 5 to 10 childnodes..
how to find each subnode's first child alone..
thank you
I'm not sure but I think it can work
Alternativly you could use:
</xsl:for-each>
here are my nodes
-home(home page)
- gallery(subpage)
-men wear(subpage)
-image1(picture documentype)
-imag2(picture documentype)
-women wear(subpage)
-image3(picture documentype)
-imag4(picture documentype)
i want to get the image1, image3 as such.. i am using v4.0.3
thank you
Whats the doctype alias for gallery?
EDIT
Either way it'll be something like...
Where $gallery is the gallery node. You might wish to apply further filtering on doc types
if this could be done using razor?
is working on a reply...