xml.instruct! :xml, :version=> '1.0', :encoding => 'UTF-8'
xml.urlset( :xmlns => 'http://www.google.com/schemas/sitemap/0.84') do


  # First entry is the main entry to the site
  xml.url do
    xml.loc("http://#{@host}/")
    xml.changefreq('daily')
    xml.priority('0.9')
  end
  
  # Then one entry per post
  for page in @pages
    xml.url do
      xml.loc("http://#{@host}/page/#{page.url}/")
      xml.changefreq('weekly')
      xml.priority('0.5')
    end
  end
  

end