def build_for_article(a, xml)
url = url_for(a)
return if url.nil?
xml.entry do
xml.id atom_tag_for(a)
xml.title a[:title], :type => 'html'
xml.published attribute_to_time(a[:created_at]).to_iso8601_time
xml.updated attribute_to_time(a[:updated_at] || a[:created_at]).to_iso8601_time
if a[:author_name] || a[:author_uri]
xml.author do
xml.name a[:author_name] || author_name
xml.uri a[:author_uri] || author_uri
end
end
xml.link(:rel => 'alternate', :href => url)
summary = excerpt_proc.call(a)
xml.content content_proc.call(a), :type => 'html'
xml.summary summary, :type => 'html' unless summary.nil?
end
end