3 xml.rss("version" => "2.0",
4 "xmlns:dc" => "http://purl.org/dc/elements/1.1/",
5 "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
6 "xmlns:georss" => "http://www.georss.org/georss") do
9 xml.description @description
10 xml.link url_for(:action => "list", :only_path => false)
12 xml.url image_url("mag_map-rss2.0.png")
16 xml.link url_for(:action => "list", :only_path => false)
19 @entries.each do |entry|
22 xml.link url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :only_path => false)
23 xml.guid url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :only_path => false)
24 xml.description entry.body.to_html
25 xml.dc :creator, entry.user.display_name
26 xml.pubDate entry.created_at.to_s(:rfc822)
27 xml.comments url_for(:action => "view", :id => entry.id, :display_name => entry.user.display_name, :anchor => "comments", :only_path => false)
29 if entry.latitude && entry.longitude
30 xml.geo :lat, entry.latitude.to_s
31 xml.geo :long, entry.longitude.to_s
32 xml.georss :point, "#{entry.latitude} #{entry.longitude}"