Check that this works with xref elements, too