#33117: sitemap.xml template used with alternates for multiple languages 
returns an
invalid xml
--------------------------------------------+------------------------
               Reporter:  ViggieSmalls      |          Owner:  nobody
                   Type:  Bug               |         Status:  new
              Component:  contrib.sitemaps  |        Version:  3.2
               Severity:  Normal            |       Keywords:
           Triage Stage:  Unreviewed        |      Has patch:  0
    Needs documentation:  0                 |    Needs tests:  0
Patch needs improvement:  0                 |  Easy pickings:  1
                  UI/UX:  0                 |
--------------------------------------------+------------------------
 The generated xml has following validation error: "Error 1845: Element
 '{http://www.w3.org/1999/xhtml}link': No matching global element
 declaration available, but demanded by the strict wildcard."

 This [https://stackoverflow.com/a/43502548/5540654 response] in
 StackOverflow contains the correct fix.

 The error in the `sitemap.xml` template error is simply a missing slash
 for `xmlns:xhtml="http://www.w3.org/1999/xhtml/"`
 
[https://github.com/django/django/blob/4ca508a68916dd43da45fd6e8b9004824a62d9c8/django/contrib/sitemaps/templates/sitemap.xml#L2
 in line 2].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33117>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.1f96c9733a48a8b705e666b97174198a%40djangoproject.com.

Reply via email to