XSL Stylesheet and Transformation with XML Sitemaps
Microsys
  

XSL Stylesheet and Transformation with XML Sitemaps

XSL transformations and stylesheets for XML sitemaps are completely ignored by search engines.
Help: overview | previous | next

Explanation of XML Related Acronyms

  • XSL: Extensible Stylesheet Language. This covers a range of XML extensions.
  • XSLT: XSL Transformations. Used to transform XML files into other formats, e.g. XHTML.


Relevance for XML Sitemaps

When using an internet browser to view XML sitemap files without above, your browser may state there is no stylesheet associated with the XML document, and that it will use its default rendering instead.

That is not an error.

The XML sitemaps protocol has no mention of XSL and XSLT, and search engines have no use for them. Search engines read the raw XML sitemaps and extract the data as specified in the XML sitemaps protocol.

If you want to create sitemaps for your human visitors, you can take advantage of the rich support in TechSEO360 for both simple HTML sitemap and advanced HTML sitemaps.


Viewing XML Sitemap Without XSL Stylesheet

Most internet browsers will apply a default style when viewing XML sitemaps inside them. This means they will look differently than what they actually are.

xml sitemap file without stylesheet viewed in FireFox
(XML sitemap file without style information viewed in FireFox browser.)


Adding XML Sitemaps Stylesheet XSL File

You can either use the XSL stylesheet file always included in the installation or point our sitemap generator to another:

xml sitemap stylesheet file

The code part looks like this in generated XML sitemap files:
<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
This help page is maintained by

As one of the lead developers, his hands have touched most of the code in the software from Microsys.

If you email any questions, chances are that he will be the one answering them.
TechSEO360About TechSEO360

SEO website crawler tool that can find broken links, analyze internal link juice flow, show duplicate titles, perform custom code/text search and much more.
Share this page with friends   LinkedIn   Twitter   Facebook   Pinterest   Google+   YouTube  
 © Copyright 1997-2018 Microsys

 Usage of this website constitutes an accept of our legal, privacy policy and cookies information.