xml.instruct! :xml, :version => "1.0" 
xml.rss :version => "2.0" do
  xml.channel do
  	if @current_category
			xml.title @current_category.i18n_variable[I18n.locale]
		else
			xml.title t('announcement.announcement')
		end
    xml.link panel_announcement_front_end_bulletins_path(:rss)
    
    for bulletin in @bulletins
      xml.item do
        xml.title bulletin.title[I18n.locale]
        xml.description bulletin.subtitle[I18n.locale]
        xml.pubDate bulletin.postdate.to_s(:rfc822)
        xml.link panel_announcement_front_end_bulletin_path(bulletin, :rss)
        xml.guid panel_announcement_front_end_bulletin_path(bulletin, :rss)
      end
    end
  end
end