<% fmt_stream.each do |fmt| %> " type="<%= fmt["type"]? ? fmt["type"].to_s.split(";")[0] : "" %>"> <% end %>