hi Sam, nice module. I added the lines below and the attached open source xsl and lines below to your output from gsitemap, creates a more readable & easily verified map.
print '<?xml version="1.0" encoding="UTF-8"?>';
print '<?xml-stylesheet type="text/xsl" href="gss.xsl"?>';
print '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">';
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | gss.xsl | 11.88 KB | fax8 |
| #1 | schema+xsl.patch.txt | 985 bytes | fax8 |
| gss.xsl.txt | 11.94 KB | greg@beargroup.com |
Comments
Comment #1
fax8 commentedthe attached patch add support for Google SiteMap XSD making easier to test sitemap validity.
Moreover it adds a link to the gss.xsl file posted above.
To use this patch simply copy the file gss.xsl into your gsitemap folder under modules then apply the patch to your 4.7 gsitemap.module
Hope this helps.
Fabio Varesano
Comment #2
dman commentedcool idea
Comment #3
Tobias Maier commentedgreat additon
works as expected --> rtbc
if you commit it: please remove the
?>in the end of gsitemap.moduleit is not needed - and is note used in drupal core, too
Comment #4
Tobias Maier commentedonly one comment: i found this line in the xsl-file:
<link href="gss.css" type="text/css" rel="stylesheet"/>don't we need this file, too?
please add it if necessary
Comment #5
fax8 commentedthe gss.xsl file is a merge of the original files available at http://sourceforge.net/projects/gstoolbox
In the original release there were gss.xsl, gss.css, gss.js . The gss.xsl has gss.css and gss.js rules embedded in it.
So.. the
<link href="gss.css" type="text/css" rel="stylesheet"/>can be safely removed.
Fabio Varesano
Comment #6
fax8 commentedattached there is the updated gss.xls file without linking gss.css
please review and commit.
Fabio Varesano
Comment #7
greg@beargroup.com commentedNeeds update to XML Sitemap module changes - can use sitemap.org XSD instead of google specific <?>
Comment #8
SamAMac commentedI updated the namespace to the sitemaps.org one, since that is what gsitemap now outputs, and committed this patch to 4.7 dev.
Thanks to everyone who contributed!
Comment #9
(not verified) commented