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.
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...