Homeowner Loan - Loans - 1-shoes-shopping.com - Credit Card - Dubai Property

PDA

View Full Version : Sitemap Stylesheet (XSL)


J.D.
Jul 31st 2005, 2:23 pm
I put together a small XSL stylesheet that makes it easier to view sitemap files. Copy the attached XSL file into the same directory that contains your sitemap file and rename the stylesheet file to sitemap.xsl (DP doesn't allow .xsl attachments). Edit your sitemap file to include the highlighted directive:

<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="sitemap.xsl" ?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>...</url>
</urlset>

This directive is an XML processing instruction and will not invalidate your sitemap when submitted to Google.

Open the sitemap file in the browser (Opera can't handle XSL, but IE and FF will work fine) to see the sitemap in HTML. The results are ordered by the modification date and then by location (alphabetically). You can click URLs to check if they are valid.

J.D.

nevetS
Jul 31st 2005, 2:28 pm
Interesting.... I haven't thought about xsl in a while, but it might just make good sense to do that to rss/atom feeds as well so when users click on them they see something readable.

J.D.
Jul 31st 2005, 2:33 pm
Interesting.... I haven't thought about xsl in a while, but it might just make good sense to do that to rss/atom feeds as well so when users click on them they see something readable.Yep, that would be a fairly simple stylesheet. I do the same with DP private messages - download them as XML and view through an XSL stylesheet.

J.D.

North Carolina SEO
Jul 31st 2005, 3:46 pm
Thank you, thank you, thank you... it is appreciated!

Baccou Bonneville
Aug 20th 2005, 3:35 am
I have seen that you have worked on a similar idea that I had: to create XSLT stylesheets for Google Sitemaps. I'm not able to see your XSLT stylesheet to compare; how can I download it?

I have created Google Sitemaps Stylesheets (GSS), two XSLT
stylesheets named siteindex.xsl and sitemap.xsl. These stylesheets have
been created to display sitemaps XML files in a user-friendly way.

Here is a demo of Google Sitemaps Stylesheets for Baccou Bonneville web
site:
http://www.baccoubonneville.com/sitemap.xml

Please read this note on my blog for more information and comments:
http://www.baccoubonneville.com/blogs/index.php/webdesign/2005/08/20/google-sitemaps-stylesheets

J.D.
Aug 20th 2005, 8:54 am
Nice work.

Yeah, I cleaned up my attachments a bit. You can see it used in /sitemap.xml on the website in my signature.

J.D.