Google does not suggest anything which is where I am pulling out my hair. I tried this and it failed as well:
<>
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
Stick that as the first line of your template file containing the macro instead of the macro and you should be ok. You're right, I think it should also be included and it is present on my working sitemap
[quote=ddrayne]Stick that as the first line of your template file containing the macro instead of the macro and you should be ok. You're right, I think it should also be included and it is present on my working sitemap[/quote]
If I try to do that it throws an error, this is what I tried:
[quote=ddrayne]I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template
Nice! I have tried it and resubmitted to google, so lets wait and see. I hate it how when you create a matching template it automatically calls a master template in v4. Oh well, minor setback!
[quote=Ewatkins][quote=ddrayne]I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template
Nice! I have tried it and resubmitted to google, so lets wait and see. I hate it how when you create a matching template it automatically calls a master template in v4. Oh well, minor setback![/quote]
Still no luck, google crawled it and reported the same warning...here is the template code:
[code]
Hope this helps guys
Warren[/quote]
I just ran my sitemap on the validator and it validates as well but google does not see it that way, it says there is a namespace error...
im my header becuase I kept getting an error, Warren suggested that in the template i have everything on one line, so I updated my template and it all works fine. My template looks like
I am looking into this now guys who are using my CWS2 version of this and I think I have it solved I have just submitted to google and I am just waiting to see if it comes back OK.
If it does I will let you know the fix and I will make it as default for the next minor release of CWS in the future.
Warren :)
Hmmm I am not too happy as I have done what Google have asked and it still is throwing this warning about the namespace.
[quote]Incorrect namespace
Your Sitemap or Sitemap index file doesn't properly declare the namespace.
[/quote]
The sitemap I am submitting to Google is [url]http://cws2.xeed.co.uk/CWS_XML-Sitemap.aspx[/url] and if you view the source it contains the namespace at the top as google wants.
That's weird - I was sure that my 'accepted' sitemap was based on the original one from CWS1. Here's what I've got at the top of the doc, however. It does seem to have more "namespace" stuff in it
Hmm your also using the 0.84 schema as opposed to the 0.9 mentioned in this document - [url]https://www.google.com/webmasters/tools/docs/en/protocol.html[/url]
Did you find a working solution for this? I am adding my sites sitemap to google as well, and I have the same error. Could you please post a working sitemap xslt here?
Google sitemap with cws2 error
Got this in my google webmasters section, warning.
Details 1 Incorrect namespace
Your Sitemap or Sitemap index file doesn't properly declare the namespace
and when I navigate to the sitemap it is missing something like this:
Hiya EWatkins if the
Google does not suggest anything which is where I am pulling out my hair. I tried this and it failed as well:
<>
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
Is this a dupe of http://forum.umbraco.org/yafpostst9512Google-is-gving-me-errors-on-my-google-sitemap.aspx?
I'm still seeing a
[code]
[/code]
Char in your xslt at http://www.blueridgepowdercoating.com/google-sitemap.aspx. This is probably causing issues.
Try opening the xslt in notepad, deleted all whitespace between the urlset nodes and just use a straight carriage return.
[quote=ddrayne]Is this a dupe of http://forum.umbraco.org/yafpostst9512Google-is-gving-me-errors-on-my-google-sitemap.aspx?
I'm still seeing a
[code]
[/code]
Char in your xslt at http://www.blueridgepowdercoating.com/google-sitemap.aspx. This is probably causing issues.
Try opening the xslt in notepad, deleted all whitespace between the urlset nodes and just use a straight carriage return.[/quote]
Where do you see that? Could it be this?
]>
When I view the source of the page at http://www.blueridgepowdercoating.com/google-sitemap.aspx
[code]
[quote=ddrayne]When I view the source of the page at http://www.blueridgepowdercoating.com/google-sitemap.aspx
[code]
[quote=ddrayne]When I view the source of the page at http://www.blueridgepowdercoating.com/google-sitemap.aspx
[code]
Stick that as the first line of your template file containing the macro instead of the macro and you should be ok. You're right, I think it should also be included and it is present on my working sitemap
[quote=ddrayne]Stick that as the first line of your template file containing the macro instead of the macro and you should be ok. You're right, I think it should also be included and it is present on my working sitemap[/quote]
If I try to do that it throws an error, this is what I tried:
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
wont let it work, says only controls can be on the level or something like that...
I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template
[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">
We'll get there!
[/code]
[quote=ddrayne]I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template
[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">
We'll get there!
[/code][/quote]
Nice! I have tried it and resubmitted to google, so lets wait and see. I hate it how when you create a matching template it automatically calls a master template in v4. Oh well, minor setback!
[quote=Ewatkins][quote=ddrayne]I'm not sure that this needs a masterpage? Just create a new template with no master - havent tried on v4, but here's what's in my v3 sitemap template
[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">
We'll get there!
[/code][/quote]
Nice! I have tried it and resubmitted to google, so lets wait and see. I hate it how when you create a matching template it automatically calls a master template in v4. Oh well, minor setback![/quote]
Still no luck, google crawled it and reported the same warning...here is the template code:
[code]
[/code]
You could try popping the namespace into the template instead of the xslt, but to be honest I'm not sure what difference it will make...
Strange, this says its ok http://www.validome.org/google/validate?url=http://www.blueridgepowdercoating.com/google-si
temap.aspx&lang=en&googleTyp=SITEMAP
OK guys i just used that validator on my test site of CWS2 and it is working OK.
Validation results
[url]http://www.validome.org/google/validate?url=http://cws2.xeed.co.uk/CWSXML-Sitemap.aspx&lan
g=en&googleTyp=SITEMAP[/url]
XML Sitemap
[url]http://cws2.xeed.co.uk/CWSXML-Sitemap.aspx[/url]
In your template ensure its set out like this all on one line any line breaks or whitespace can cause it to freak I found.
[code]
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
[/code]
Hope this helps guys
Warren
[quote=warren]OK guys i just used that validator on my test site of CWS2 and it is working OK.
Validation results
[url]http://www.validome.org/google/validate?url=http://cws2.xeed.co.uk/CWSXML-Sitemap.aspx&lan
g=en&googleTyp=SITEMAP[/url]
XML Sitemap
[url]http://cws2.xeed.co.uk/CWSXML-Sitemap.aspx[/url]
In your template ensure its set out like this all on one line any line breaks or whitespace can cause it to freak I found.
[code]
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
[/code]
Hope this helps guys
Warren[/quote]
I just ran my sitemap on the validator and it validates as well but google does not see it that way, it says there is a namespace error...
OK i will try to find some time to look into this please post a discussion or bug on the CWS codeplex site so I dont forget.
Warren :)
Any solution to this one yet?
Get the same error: "Incorrect namespace"
Looking at my http://dynamicsexperts.net/CWS_XML-Sitemap.aspx, then of course I'm getting an error. My header is like this:
[code]
-
OK guys I will look into this tomorrow as obviously is a problem with Google. Apologies about this and will and try and resolve this.
Warren :)
Guys,
I had similar issue on Friday, I did not have
[code]
[/code]
im my header becuase I kept getting an error, Warren suggested that in the template i have everything on one line, so I updated my template and it all works fine. My template looks like
[code]
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
[/code]
The macro is called google-site-map but the code is almost exactly the same as the cws macro.
Regards
Ismail
I am looking into this now guys who are using my CWS2 version of this and I think I have it solved I have just submitted to google and I am just waiting to see if it comes back OK.
If it does I will let you know the fix and I will make it as default for the next minor release of CWS in the future.
Warren :)
Hmmm I am not too happy as I have done what Google have asked and it still is throwing this warning about the namespace.
[quote]Incorrect namespace
Your Sitemap or Sitemap index file doesn't properly declare the namespace.
[/quote]
The sitemap I am submitting to Google is [url]http://cws2.xeed.co.uk/CWS_XML-Sitemap.aspx[/url] and if you view the source it contains the namespace at the top as google wants.
[code]
That's weird - I was sure that my 'accepted' sitemap was based on the original one from CWS1. Here's what I've got at the top of the doc, however. It does seem to have more "namespace" stuff in it
[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]
Hmmm interesting to see that your
Here's what I've got at the top of mine:
[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]
Seems identical to @ddrayne's and works just dandy!
Hmm your also using the 0.84 schema as opposed to the 0.9 mentioned in this document - [url]https://www.google.com/webmasters/tools/docs/en/protocol.html[/url]
Scroll down on that page (https://www.google.com/webmasters/tools/docs/en/protocol.html) to "validating your sitemap". Here's the full 0.9 code
[code]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
[/code]
perhaps that's what is missing
Ah man I am such a fool thanks @ddryane its 99% sure this is going to fix it - thanks mate.
Warren :)
Did you find a working solution for this? I am adding my sites sitemap to google as well, and I have the same error. Could you please post a working sitemap xslt here?
:-({|= - Alexander Rybak :d/
Hiya Alexander,
Thanks for reminding me, I forgot all about this to be honest.
My XML sitemap template is as follows:
[code]
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
[/code]
It's important that the opening
is working on a reply...