Thanks for investigating and locating the issue.
Have attempted the exclusion approach, but couldn’t get it to work. Instead, ended up just adding a filter to xsl output using wp_sitemaps_stylesheet_content (adding an additional space into the xls file where the markup was being broken).
This seems to have solved the issue for now.
If anyone finds it useful, here is my filter:
function webme_sitemap_xsl($original) {
return str_replace(‘indent=”yes”/>’, ‘indent=”yes” />’, $original);
}
add_filter(‘wp_sitemaps_stylesheet_content’, ‘webme_sitemap_xsl’);
Look forward to a permanent solution with the regex causing it in the first place. ??