I have some XSLT that need to check if a node is on a certain level and has children while looping through in a 'for each' loop. I have the following code:
<xsl:if test="@level = 4">
But I need to know what to add to that line of code so that it will check if the node is on a certain level AND has child nodes under it. Can anyone provide the code I'm missing to do this?
Check if node has children?
Hi Everyone,
I have some XSLT that need to check if a node is on a certain level and has children while looping through in a 'for each' loop. I have the following code:
<xsl:if test="@level = 4">
But I need to know what to add to that line of code so that it will check if the node is on a certain level AND has child nodes under it. Can anyone provide the code I'm missing to do this?
Thanks
Shufflemoomin
Could you add another <xsl:if test=""> under the current one with something like
No idea if this syntax is correct as I'm a newbie to this .. LOL
Hope this helps:
Well I was sort of close.. lol :)
If a reply results in your solution please select it as such. That way your post can be closed.
How do I do that Ron? Do I click on the tick button next to the posts that helped or just edit the topic to say solved?
I worked it out ron, just clicked the green check next to your post. Thanks a million for the help! :)
Shufflemoomin
You're welcome!
is working on a reply...