Sitemap XSLT Stylesheets
What is this?
Every website that wants to be found should have a sitemap.xml file that Google
(and everyone else) can use to help find and index all the pages.
By default, these files look horrible when a human looks at them in a browser. But there is a simple way to make them look better: an XSLT Stylesheet from XML.Style!
How do I use it?
Download one of the available styles and save it as
sitemap.xslt in the same directory as your sitemap.xml file
Note that the extension is .xslt and NOT .xml!
Add it to your sitemap.xml file. At the top of the file, it will look like:
<?xml version="1.0" encoding="UTF-8"?> <urlset ...> ...
Add a line in the middle so it looks like:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="my-downloaded-file.xslt"?> <urlset ...> ...
Available Styles
- plain.xslt - just a plain bullet list of pages with classless CSS.
- linked.xslt - same as plain, but with a link to the Sitemap Viewer. Demo
- redirect.xslt - a JavaScript redirect to the Sitemap Viewer with fallback to plain.
Source | Sitemap Viewer | Sitemap Viewer Parameters
Links
- Wikipedia entry for Sitemaps
- Sitmaps.org: the official specification for sitemap.xml
- Yoast: Why you need a sitemap
- Google: Building and submitting a sitemap
Copyright © 2026 Andrew Marcuse. All Rights Reserved. |
Source
| Share: