My XML is a series of nested "activities." I want to find LEAF activities, that is, activities without activity descendents.
Something like this:
xml..activity.(descendents('activity').length()==0)
But of course that does not work. I've always been unsure about the scope in
predicate filter...

