require 'rubygems'
require 'builder'
@steps = %w(foo bar baz)
class Builder::XmlMarkup
  def nl!
    _text "\n"
  end
end

#####

@w = Builder::XmlMarkup.new
@w.tag! :html do
  @w.tag! :head do
    @w.tag! :title, 'Atom Protocol Excerciser Report'
    @w.nl!
    @w.tag! :link,
      :rel => 'stylesheet', :type => 'text/css', :href => '/ape/ape.css'
  end
  @w.nl!

  @w.tag! :body do
    @w.tag! :h2, 'The Ape says:'
    @w.nl!
    if @header
      @w.tag! :p, @header
      @w.nl!
    end
    @w.tag! :ol do
      @w.nl!
      @steps.each do |step|

#####
        @w.tag! :li, step
        @w.nl!
      end
    end
    @w.nl!
  end
end

print @w.target!
