How to select nodes with no children?

I’m implementing this now for the next release. Here’s what I think the query will look like to show:

  1. For each project
  2. First descendent with no children
//project//count(.*) = 0[0]

Does that syntax look reasonable?

1 Like