サイトに多言語サポートを追加した後、Google のアドバイスに従って、XML サイトマップに別の言語バージョンへの hreflang リンクを組み込むようにしました。
ただし、これを行った後、さまざまなオンラインバリデーター ( this oneなど) が次の行に沿って検証エラーを返していることがわかりました。
要素 '{ http://www.w3.org/1999/xhtml }link': 一致するグローバル要素宣言がありませんが、厳密なワイルドカードが必要です
私のサイトマップのサニタイズされた抜粋は以下のとおりです。重要な場合に備えて、実際のフォーマットを保持しました (フレームワークがレンダリングする方法のためにきちんとインデントされていません)。
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
http://www.w3.org/1999/xhtml
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"><url>
<loc>http://dev.domain.com/template/en-GB/</loc>
<lastmod>2017-02-17</lastmod>
<xhtml:link rel="alternate" hreflang="en-GB" href="http://dev.domain.com/template/en-gb/" /><xhtml:link rel="alternate" hreflang="de" href="http://dev.domain.com/template/de-de/" /><xhtml:link rel="alternate" hreflang="en-PH" href="http://dev.domain.com/template/en-gb/" /><xhtml:link rel="alternate" hreflang="cs-CZ" href="http://dev.domain.com/cz/cs-cz/about-domain/thing" /><xhtml:link rel="alternate" hreflang="af-ZA" href="http://dev.domain.com/cz/cs-cz/about-domain/thing" /><xhtml:link rel="alternate" hreflang="ar-QA" href="http://dev.domain.com/cz/cs-cz/about-domain/thing" /><xhtml:link rel="alternate" hreflang="de-DE" href="http://dev.domain.com/de/de-de/applications" /><xhtml:link rel="alternate" hreflang="x-default" href="http://dev.domain.com/template/en-gb/" />
</url><url>
<loc>http://dev.domain.com/template/en-gb/about-domain-en</loc>
<lastmod>2017-02-28</lastmod>
<xhtml:link rel="alternate" hreflang="en" href="http://dev.domain.com/template/en-gb/about-domain-en" /><xhtml:link rel="alternate" hreflang="de-DE" href="http://dev.domain.com/template/de-de/uber-domain" /><xhtml:link rel="alternate" hreflang="en-PH" href="http://dev.domain.com/template/en-gb/about-domain-en" />
</url><url>
<loc>http://dev.domain.com/template/en-gb/about-domain/thing-en</loc>
<lastmod>2016-10-20</lastmod>
<xhtml:link rel="alternate" hreflang="en-GB" href="http://dev.domain.com/template/en-gb/about-domain/thing-en" /><xhtml:link rel="alternate" hreflang="de-DE" href="http://dev.domain.com/template/de-de/uber-domain/thing" /><xhtml:link rel="alternate" hreflang="en-PH" href="http://dev.domain.com/template/en-gb/about-domain/thing-en" />
</url></urlset>
XML に問題は見られず、Google のアドバイスに正確に従っているようです。これを本番環境にデプロイしても安全ですか、それとも問題が何であるかを突き止めるまで、Google はペナルティを科すつもりですか?