From abcab1b57d6bc3e6e44ff4d143f33bee8cc15a4d Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 6 Dec 2022 22:13:01 -0500 Subject: themes/default/layouts/_default/sitemap.xml: Add schema and transform Validate with schema. Switch to xml-data identifier attribute and adjust file name-spacing in configuration --- assets/schemas/sitemap-v0.9.xsd | 113 +++++++++++++++++++++++++++++++++++ assets/schemas/sitemapindex-v0.9.xsd | 71 ++++++++++++++++++++++ 2 files changed, 184 insertions(+) create mode 100644 assets/schemas/sitemap-v0.9.xsd create mode 100644 assets/schemas/sitemapindex-v0.9.xsd (limited to 'assets/schemas') diff --git a/assets/schemas/sitemap-v0.9.xsd b/assets/schemas/sitemap-v0.9.xsd new file mode 100644 index 0000000..e27680e --- /dev/null +++ b/assets/schemas/sitemap-v0.9.xsd @@ -0,0 +1,113 @@ + + + + + XML Schema for Sitemap files. + Last Modifed 2008-03-26 + + + + + + Container for a set of up to 50,000 document elements. + This is the root element of the XML file. + + + + + + + + + + + + + Container for the data needed to describe a document to crawl. + + + + + + + + + + + + + + REQUIRED: The location URI of a document. + The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt). + + + + + + + + + + + OPTIONAL: The date the document was last modified. The date must conform + to the W3C DATETIME format (http://www.w3.org/TR/NOTE-datetime). + Example: 2005-05-10 + Lastmod may also contain a timestamp. + Example: 2005-05-10T17:33:30+08:00 + + + + + + + + + + + + + + + OPTIONAL: Indicates how frequently the content at a particular URL is + likely to change. The value "always" should be used to describe + documents that change each time they are accessed. The value "never" + should be used to describe archived URLs. Please note that web + crawlers may not necessarily crawl pages marked "always" more often. + Consider this element as a friendly suggestion and not a command. + + + + + + + + + + + + + + + + OPTIONAL: The priority of a particular URL relative to other pages + on the same site. The value for this element is a number between + 0.0 and 1.0 where 0.0 identifies the lowest priority page(s). + The default priority of a page is 0.5. Priority is used to select + between pages on your site. Setting a priority of 1.0 for +100 4451 100 4451 0 0 15017 0 --:--:-- --:--:-- --:--:-- 15037 +all URLs + will not help you, as the relative priority of pages on your site + is what will be considered. + + + + + + + + diff --git a/assets/schemas/sitemapindex-v0.9.xsd b/assets/schemas/sitemapindex-v0.9.xsd new file mode 100644 index 0000000..c35d50a --- /dev/null +++ b/assets/schemas/sitemapindex-v0.9.xsd @@ -0,0 +1,71 @@ + + + + + XML Schema for Sitemap index files. + Last Modifed 2009-04-08 + + + + + + Container for a set of up to 50,000 sitemap URLs. + This is the root element of the XML file. + + + + + + + + + + + + + Container for the data needed to describe a sitemap. + + + + + + + + + + + + REQUIRED: The location URI of a sitemap. + The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt). + + + + + + + + + + + OPTIONAL: The date the document was last modified. The date must conform + to the W3C DATETIME format (http://www.w3.org/TR/NOTE-datetime). + Example: 2005-05-10 + Lastmod may also contain a timestamp. + Example: 2005-05-10T17:33:30+08:00 + + + + + + + + + + + + -- cgit v1.2.3