I have the below XSLT which is grabbing the values selected by a multi-node-tree-picker on the children of the homepage of my site. Is there a way to separate the children in the XSLT? I'd like to put each of them into a separate list instead of having one list containing all of the values of the pickers. I'm not sure how to say "for each child do this, then for each of their children do this"
<!-- Loop through each of the nodeId values --> <xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) != '1']/topStories/MultiNodePicker/nodeId">
<!--
Since we only have the nodeId value, we need to get the actual content
node using umbraco.library's GetXmlNodeById method --> <!--
If you prefer to use pure XPath, then used this:
"$currentPage/ancestor-or-self::*[@isDoc and @level =
1]/descendant-or-self::*[@isDoc and @id = current()]" --> <xsl:variable name="node" select="umbraco.library:GetXmlNodeById(.)" /> <li>
<!-- Output the URL using umbraco.library's NiceUrl method --> <a href="{umbraco.library:NiceUrl(.)}">
Separate properties by parent node
Hi,
I have the below XSLT which is grabbing the values selected by a multi-node-tree-picker on the children of the homepage of my site. Is there a way to separate the children in the XSLT? I'd like to put each of them into a separate list instead of having one list containing all of the values of the pickers. I'm not sure how to say "for each child do this, then for each of their children do this"
So right now I get:
Homepage
What I'd like to achieve is
Div
Div
Thanks for your help!
Amir
is working on a reply...