You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using the gatsby-plugin-sitemap package and generate a sitemap with localized links.
The <xhtml:link> namespace is not recognized by the default namespace tag on <urlset>.
When doing so, the sitemap is not readable as XML and read as XHTML by the browser.
Also, see this and this issue. Which show the answer as:
(I've added news/mobile/image/video to the answer)
I'm getting these errors when validating here, whether I use the above answer or the general output (with added linkItems): Error 1845: Element '{http://www.w3.org/TR/xhtml11/xhtml11_schema.html}link': No matching global element declaration available, but demanded by the strict wildcard.
I'm by far no XML expert and cannot confirm which is correct.
But using the above answer, the sitemap.xml is at least read by the browser as XML.
Expected behavior
When adding linkItems the correct namespace should be added and above errors should not occur.
Context:
gatsby-plugin-sitemap@2.12 (I'm using an older version because of Gatsby v2)
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm using the gatsby-plugin-sitemap package and generate a sitemap with localized links.
The
<xhtml:link>
namespace is not recognized by the default namespace tag on<urlset>
.When doing so, the sitemap is not readable as XML and read as XHTML by the browser.
Also, see this and this issue. Which show the answer as:
(I've added news/mobile/image/video to the answer)
I'm getting these errors when validating here, whether I use the above answer or the general output (with added linkItems):
Error 1845: Element '{http://www.w3.org/TR/xhtml11/xhtml11_schema.html}link': No matching global element declaration available, but demanded by the strict wildcard.
I'm by far no XML expert and cannot confirm which is correct.
But using the above answer, the sitemap.xml is at least read by the browser as XML.
Expected behavior
When adding linkItems the correct namespace should be added and above errors should not occur.
Context:
The text was updated successfully, but these errors were encountered: