1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Sitemap Stylesheet (XSL)

Discussion in 'Google Sitemaps' started by J.D., Jul 31, 2005.

  1. #1
    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.
     
    J.D., Jul 31, 2005 IP
  2. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #2
    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.
     
    nevetS, Jul 31, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    J.D., Jul 31, 2005 IP
  4. North Carolina SEO

    North Carolina SEO Well-Known Member

    Messages:
    1,327
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    105
    #4
    Thank you, thank you, thank you... it is appreciated!
     
    North Carolina SEO, Jul 31, 2005 IP
  5. Baccou Bonneville

    Baccou Bonneville Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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
     
    Baccou Bonneville, Aug 20, 2005 IP
  6. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    J.D., Aug 20, 2005 IP