# File lib/ruote/exp/iterator.rb, line 59
    def split_list(list)

      if list.is_a?(String)

        sep = attribute(:separator) || attribute(:sep) || ','
        list.split(sep).collect { |e| e.strip }

      elsif list.respond_to?(:to_a)

        list.to_a

      elsif list.respond_to?(:[]) and list.respond_to?(:length)

        list

      else

        []
      end
    end