Insertion of references, selection by attributes