# File rxml/working/xforms_transformer.rb, line 124
      def form(doc, name, action, method, req_id=nil, replace_id=nil, attr=nil)
        @model_buffer << "\n<xf:submission action=\"#{action}\" #{attr}" <<
          " id=\"#{name}\" includenamespaceprefixes=\"\" ref=\"instance('#{req_id}')\""
        @model_buffer << ' method="' << method.downcase << '"'
        if replace_id
          @model_buffer << " replace=\"instance\" instance=\"#{replace_id}\"" 
        else 
          @model_buffer << ' replace="all"'
        end
        @model_buffer << '/>'
        #yield doc 
        #@model_buffer << '</xf:submission>'
      end