I’m trying to write a query that finds all @start tags with value less than X, along with their children (following this guide, but not tagged @done. I thought this would do it, but it doesn’t return the right results:
((//@start <= "2014-08-10") union //@start//*) except //@done
I guess I’m getting messed up in the compound nature of it. Maybe someone could explain the rules for building up the conditions.