refactor to use element/attribute transformations for relativisation from silk