Support > Elxis 4.x/5.x DEV

Request Elxis 4.x extensions

<< < (11/27) > >>

datahell:
Update.
I added the hreflang urls in sitemap and did what google instructs but their instructions are wrong.
The sitemap doesnt validate as the xhtml:link tag does not exist in given namespace. Even their own example is invalid. Use a sitemap validator to test it by your self.

maple:

--- Quote from: datahell on June 28, 2013, 19:43:56 ---Update.
I added the hreflang urls in sitemap and did what google instructs but their instructions are wrong.
The sitemap doesnt validate as the xhtml:link tag does not exist in given namespace. Even their own example is invalid. Use a sitemap validator to test it by your self.

--- End quote ---


datahell,

look this answer: http://bit.ly/17HWUr4 explain that Namespace prefix xhtml on link is not defined. Do you forget the following?:
--- Code: ---xmlns:xhtml="http://www.w3.org/1999/xhtml"
--- End code ---

look also this: http://bit.ly/14eTlUo from my own. Display: This document was successfully checked as well-formed XML!



datahell:
You make the same mistake.
You use an XML validator, use a sitemap validator, even Google's, and you will see that your sitemap is invalid and doesn't get parsed. Even the browser don't display it. Open the URL you wrote with your browser and you will see.

http://www.w3.org/1999/xhtml does not contain xhtml:link because it is an old implementation, you need to use xhtml 1.1.

I made a solution in order for the document to be valid although it still doesn't validates as validators don't support xhtml:link

xhtml:link requires xhtml 1.1 namespace which (I think) it is not official. If you put the line below in your sitemap head it will become a valid document (although validators will still fail)

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/TR/xhtml11/xhtml11_schema.html">

Search google for sitemap validators and use these against your sitemap.

I attach a screenshot showing a part of the HTML sitemap as it is now (XML and TXT sitemaps are complete).

maple:
Oh, I see. I just added the new code line and as you say, parse well.

Perhaps can be interesting implement xhtml 1.1 and hreflang-alternate in sitemap component, then add the sitemap.xml to webmaster sitemap tool to see if display any error when google take and index the file. It seems that xhmtl 1.1 it's new, but Elxis could be ready for that heheh (Also can ask in the google webmaster sitemap forums).

Your screenshot looks very good!! Congrats!

thanks a lot

datahell:
I added hreflang alternate links and also an option to toggle them on or off (disabled by default).
So it is up to you to use this option or not.
I also think to add a ROR sitemap format (it is very similar to the RSS format). Do you think it would be useful? I saw it as an option although I don't know if anyone uses it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version