hi daniel, can you please tell me how to display the count the nodes and its descendent nodes from xslt to html output. can you please tell me how to solve this ? thanks in advance
I have a similar need, but I need to check only the top level parents in a <ul> to see if they have children and if they don't apply a <href>. All subsuquent children should allways have a link applied to them though. Any ideas?
check if node has child nodes
Hello all
I want o check if node has child nodes or not ...i tried but not getting
Here is my code...
I am making some mistak ..plz solvei t ...
Hi,
To check the child node you have to check counting of the child nodes. Here is sample code
Hope this helps
hi daniel, can you please tell me how to display the count the nodes and its descendent nodes from xslt to html output. can you please tell me how to solve this ? thanks in advance
@ Pasang ..... i want to check whether current node has child node & if yes then it will go into for-each loop ....
@Daniel .....I used that if statement but it is showing text even if there is no child node .....
I made some change to ur if statement Daniel & then it worked....
that looks great... very late here in the US.. my brain is mush..
Great job!
Hi guys,
I actually just tryed to achieve the same here (check if current node I am iterating on has any children) and Vaibhavs suggestion just worked for me.
I have a similar need, but I need to check only the top level parents in a <ul> to see if they have children and if they don't apply a <href>. All subsuquent children should allways have a link applied to them though. Any ideas?
Page I am woring with:
https://edit-www.rose-hulman.edu/offices-services/alumni-affairs-2.aspx
Here's an example of using this in a hierarchical list:
is working on a reply...