Escape & in XLink.
Drop duplicates in loc.