adding the 'anchor' attribute to the elements of a gx document