When a sitemap is generated it would be helpful to be able to alter the generated links.
In xmlsitemap.generate.inc line 176 reads as follows:
// @todo Add a separate hook_xmlsitemap_link_url_alter() here?
It would be helpful to actually implement this.
A patch will follow.