by Dave Reid: Added hook_query_xmlsitemap_link_bundle_access_alter() for any queries selecting from an entity's base table and the bundle value is in another table (e.g. vocabulary machine name for taxonomy terms).