Skip to content

Commit

Permalink
set xhtml namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Mar 2, 2023
1 parent fa7e00d commit 83c0fd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ protected function makeUrlSet()

$urlSet = $xml->createElement('urlset');
$urlSet->setAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9');
$urlSet->setAttribute('xmlns:xhtml', 'http://www.w3.org/1999/xhtml');
$urlSet->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
$urlSet->setAttribute('xsi:schemaLocation', 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd');
$urlSet->setAttribute('lsi:schemaLocation', 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd');

/**
* @event winter.sitemap.makeUrlSet
Expand Down

0 comments on commit 83c0fd6

Please sign in to comment.