How do I use jQuery in a Google Sitemap and most importantly does it violate the specifications rules or will it be blocked by Google because of the jQuery?
+1
A:
Google Sitemaps are XML files. How would you use javascript in an XML file?
The Keeper of the Cheese
2010-09-30 01:43:11
for styling and display purposes. I know I can use css but need more control over visual elements.
Julian
2010-09-30 01:44:58
Are you talking about a Google MAP and styling that? Or are you talking about a Google SITEMAP which helps Google make your site more optimized for SEO/SEM?
The Keeper of the Cheese
2010-09-30 01:47:38
the latter, as in sitemap.xml
Julian
2010-09-30 01:54:58
@Julian, you could use xsl. @The Keeper of the Cheese, technically this is more a comment than an answer, but I agree with the underlying sentiment of **why?** so I'm up-voting you anyway.
David Thomas
2010-09-30 02:00:34
I can't figure out how to add a comment to an unanswered question. I didn't want to make it an answer. I appreciate the vote.
The Keeper of the Cheese
2010-09-30 02:08:42
@David Thomas, now that I look into XSL I see a handy "transform" feature that I really need. At first glance, I figured XSL was just a version of CSS for XML files.
Julian
2010-09-30 02:10:03
@Julian that's fair, that was my first thought too when I first looked at it =) (my second thought was along the lines of "life's too short"...) @The Keeper of the Cheese, you can't add comments yet because your rep is still < 50 (I think that's the threshold, from memory). Once you get over 50 (or whatever it really is) then you'll see an 'add comment' link below questions and answers.
David Thomas
2010-09-30 02:12:38
@dthomas Thanks bro.
The Keeper of the Cheese
2010-10-02 12:52:07
A:
May be you could use an xslt style. But whether or not you can use javascript inside I don't know.
Sebastian Thiele
2010-09-30 09:56:37