# File lib/rest_htmlprinter.rb, line 145
  def create_contents_list section, min_level
    result = ""
    section.children.each do |s|
      if ( s.is_a? Section )
        result += create_contents_list s, min_level      
      end
      if ( s.is_a? Request )
        result += "<li><a href=\"##{s.id}\">" + h( s.to_s ) + "</a></li>\n"
      end
    end
    endresult = ""
    if ( !result.empty? )
      if ( section.level > min_level )
        endresult = "<li>" + h( section.to_s ) + "</li>\n"
      end
      if ( section.level >= min_level )
        endresult += "<ul>\n" + result + "</ul>\n"
      else
        endresult = result
      end
    end
    endresult 
  end