typedef_hash a-la xpath