# File rxml/xforms_transformer.rb, line 367
      def submit_tag(doc, id, create_instance, options={}, &block)
        # The model 
        if create_instance 
          @model_buffer << "\n<xf:submission action=\"#{options[:action]}\" method=\"post\" #{options[:xstyle]}" <<
            " id=\"#{id}\" includenamespaceprefixes=\"\" ref=\"instance('#{options[:req_id]}')\"" 
           
          if options[:replace_id]
            @model_buffer << " replace=\"instance\" instance=\"#{options[:replace_id]}\"" 
          else 
            @model_buffer << ' replace="all"'
          end
          @model_buffer << '/>'
        end
        
        # The view
        @view_buffer << "\n<xf:send submission=\"#{id}\" ev:event=\"" 
        if options[:event].nil?
          @view_buffer <<  "DOMActivate"
        else 
          @view_buffer << options[:event]
        end
        @view_buffer << "\">"  
        if block
          yield doc
        end
        @view_buffer << "</xf:send>"
      end