#33621: update in sitemap.xml the "xmlns:xhtml" shema. --------------------------------------------+----------------------------- Reporter: Maxim Danilov | Owner: nobody Type: Bug | Status: new Component: contrib.sitemaps | Version: 4.0 Severity: Normal | Keywords: sitemap.xml Triage Stage: Unreviewed | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 1 UI/UX: 0 | --------------------------------------------+----------------------------- 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" -- Ticket URL: <https://code.djangoproject.com/ticket/33621> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018000421a41-7e689d09-539e-4be0-abe1-0724247acbe0-000000%40eu-central-1.amazonses.com.