based on some rules to be decided, but getting dangerously close to xpath so might be worth checking existing standards.