@@ -22,7 +22,7 @@ function it_should_format_a_sitemapindex_with_n_sitemaps()
2222 {
2323 $ xml = <<<XML
2424<?xml version="1.0" encoding="UTF-8"?>
25- <sitemapindex xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
25+ <sitemapindex xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
2626 <sitemap>
2727 <loc>https://www.example.com/sitemap1.xml.gz</loc>
2828 </sitemap>
@@ -43,7 +43,7 @@ function it_should_generate_a_sitemap_of_images()
4343 {
4444 $ xml = <<<XML
4545<?xml version="1.0" encoding="UTF-8"?>
46- <urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="https://www.google.com/schemas/sitemap-image/1.1">
46+ <urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="https://www.google.com/schemas/sitemap-image/1.1">
4747 <url>
4848 <loc>https://www.example.com/1</loc>
4949 <image:image>
@@ -101,7 +101,7 @@ function it_should_generate_a_sitemap_with_links()
101101 {
102102 $ xml = <<<XML
103103<?xml version="1.0" encoding="UTF-8"?>
104- <urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
104+ <urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
105105 <url>
106106 <loc>https://www.example.com/english/</loc>
107107 <xhtml:link rel="alternate" hreflang="de" href="https://www.example.com/deutsch/"/>
@@ -149,7 +149,7 @@ function it_should_write_processing_instructions()
149149 $ xml = <<<XML
150150<?xml version="1.0" encoding="UTF-8"?>
151151<?xml-stylesheet type="text/xsl" href="/path/to/xslt/main-sitemap.xsl"?>
152- <urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
152+ <urlset xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 https ://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
153153 <url>
154154 <loc>https://www.example.com/english/</loc>
155155 <xhtml:link rel="alternate" hreflang="de" href="https://www.example.com/deutsch/"/>
0 commit comments