I have used xslt to create a google sitemap, only question is that it is in an aspx page not the usual xml page, how do I submit an aspx page to google?
I submitted sitemaps to google without problems. Just enter into google webmastertool page, add your site, and in the site left menu click on "Sitemaps". You will find on the right an input box where you can type the name of your sitemap (sitemap.aspx is ok, no problems with the extension)
[quote=leandro]I submitted sitemaps to google without problems. Just enter into google webmastertool page, add your site, and in the site left menu click on "Sitemaps". You will find on the right an input box where you can type the name of your sitemap (sitemap.aspx is ok, no problems with the extension)
[/quote]
Ok great I was afraid it had to be an xml sitemap extension!
Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.
I suspect this is because I have relative links in the urls so I will try that - however Google is also saying that you should submit a sitemap in xml format following the sitemap protocol:
[quote]To create a Sitemap based on the Sitemap protocol:
Create a text file and save it with a .xml extension.
Add the following to the top of the file:
Google has happily been eating up the sitemaps we've been creating, using a .aspx extension and with a content type of text/html - using the following header
Just having a look at this further, I noticed that my sitemap isn't quite right - its stripping out the first line () and also the namespace. Will dig further.
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Invalid at the top level of the document. Error processing resource 'http://nn.gorillahq.com/GoogleSiteTree.aspx'. Line 1,...
Google Sitemap
I have used xslt to create a google sitemap, only question is that it is in an aspx page not the usual xml page, how do I submit an aspx page to google?
I submitted sitemaps to google without problems. Just enter into google webmastertool page, add your site, and in the site left menu click on "Sitemaps". You will find on the right an input box where you can type the name of your sitemap (sitemap.aspx is ok, no problems with the extension)
[quote=leandro]I submitted sitemaps to google without problems. Just enter into google webmastertool page, add your site, and in the site left menu click on "Sitemaps". You will find on the right an input box where you can type the name of your sitemap (sitemap.aspx is ok, no problems with the extension)
[/quote]
Ok great I was afraid it had to be an xml sitemap extension!
I've tried this but the holy Goo is telling me:
Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.
I suspect this is because I have relative links in the urls so I will try that - however Google is also saying that you should submit a sitemap in xml format following the sitemap protocol:
[quote]To create a Sitemap based on the Sitemap protocol:
Create a text file and save it with a .xml extension.
Add the following to the top of the file:
Create an entry for each URL. The
You might need to change the content type the server is putting out (by default it will be HTML). eg
[code]
Response.ContentType = "text/xml";
[/code]
Google has happily been eating up the sitemaps we've been creating, using a .aspx extension and with a content type of text/html - using the following header
[code]
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">
[/code]
If you're still stuck, you can usually get around the extension issue by creating and using an 'alt template' with a name of filename.xml
E.g.
www.yoursite.com/en/page.aspx?altTemplate=InternalFlashBanner.xml
That should fool them ;-)
I don't think the encoding matters - have a look at the spec here:
http://www.sitemaps.org/protocol.php
Cheers!
Just having a look at this further, I noticed that my sitemap isn't quite right - its stripping out the first line () and also the namespace. Will dig further.
For the sake of convenience, here's my working sitemap code (credit goes to warren and CWS1, I think)
[code]
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
[/code]
Pop the macro from the xslt above into a template as such (v3 syntax used below)
[code]
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">
[/code]
and remember to either add a document property of DomainURL or hard code the full domain url into the xslt.
I did the google sitemap based on warrens cws1 but google gives me an error that there are spaces at the beginning of the file...
HI There,
I have installed Google Sitemap for Umbraco 4 (jesper.com) package.
When I try to http://yourdomain.com/GoogleSiteTree.aspx
I get the following error:
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource 'http://nn.gorillahq.com/GoogleSiteTree.aspx'. Line 1,...
Error parsing XSLT file: \xslt\GoogleSiteTree.xslt
^
Look at the full description here:
http://our.umbraco.org/forum/getting-started/installing-umbraco/30198-Google-Sitemap-does-not-work
is working on a reply...