XSLT trouble with Google News Sitemap template
This is an open discussion with 3 replies, filed under XSLT.
Search
You will need to add the appropriate namespaces to your XSLT to be able to reference and use: news:name etc....
Try adding these to your xsl:stylesheet line at the top:
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
You should read about namespaces. There are many good threads here about this topic!
[EDIT]: Ah, @muthahubbard beat me!
Thanks so much - that's worked a charm
Create an account or sign in to comment.
I'm trying to create a Google News Sitemap compliant XML file for a site but keep running into XSLT Processing Errors it seems for using colons inside tags. Have googled extensively but been unable to figure out how to get around this. Does anyone have any ideas?
Problems occur when I create tags such as:
or