# File ValidForm_html.rb, line 36 def hashes_toattributes(*hashes) html="" hashes.each{ |hash| hash.each{ |key,val| next unless key && key!='' && val!=nil && val!='' keyS = key.to_s valS = val.to_s raise "id '#{valS}' is not a legal XML identifier." if keyS.downcase=='id' && !/^[a-z_]\w*$/.match(valS) html << %{ #{keyS}="#{CGI.escapeHTML(valS)}"} } } html end