Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys, just trying to create a nested UL list that nests the children of the top level nodes, but can't work out the xpath syntax to use in the "if test" statement, and the nested for-each statement. Your help would be much appreciated. eg; [code]
Comment author was deleted
Hi you can do that with: count(./node) > 0
thanks Tim.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
When inside a for-each loop how to test if a node has children?
Hi guys, just trying to create a nested UL list that nests the children of the top level nodes, but can't work out the xpath syntax to use in the "if test" statement, and the nested for-each statement. Your help would be much appreciated.
eg;
[code]
[/code]
Comment author was deleted
Hi you can do that with:
count(./node) > 0
thanks Tim.
is working on a reply...