﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33621	"Remove ""alternate"" and change ""schema"" in sitemaps."	Maxim Danilov	nobody	"default sitemap.xml 
in case if i have multilanguage sitemap with:

<xhtml:link rel=""alternate"" hreflang=""en"" href=""something_en"" />
<xhtml:link rel=""alternate"" hreflang=""de"" href=""something_de"" />

Browser shows plain text. For example, google sitemap.xml ""https://www.google.com/nonprofits/sitemap.xml"". 
[[Image(https://habrastorage.org/webt/1f/jz/ii/1fjziijky8a0ptaolhrrzvcjx8c.png)]]

Without rel=""alternate"" all is human-readable.
[[Image(https://habrastorage.org/webt/bq/up/hq/bquphqekr3lvcxy2bxu_fllicye.png)]]

It happens only if i have rel=""alternate"".

I found, that we should update in django.contrib.sitemaps\templates\sitemap.xml
{{{
xmlns:xhtml=""http://www.w3.org/1999/xhtml""
}}}
to  
{{{
xmlns:xhtml=""http://www.w3.org/TR/xhtml11/xhtml11_schema.html""
}}}

I found the similar issue https://code.djangoproject.com/ticket/33117, but there probably was wrong idea, about ""invalid xml"""	Bug	closed	contrib.sitemaps	4.0	Normal	invalid	sitemap.xml	Florian Demmer	Unreviewed	0	0	0	0	1	0
