# File rxml/xforms_transformer.rb, line 792
      def softkey(doc, position="1", label="", refid=nil, &block)
        @view_buffer << "<m:softkey position=\"#{position}\"><m:label>#{label}</m:label>"
        
        # If we have a refid, setup a popup for the child menus; otherwise, execute
        # the proc to take action.
        if refid.nil? and block
          yield doc
        else
          @view_buffer << "<m:show-popup refid=\"#{refid}\" ev:event=\"DOMActivate\" />" 
        end 
        @view_buffer << '</m:softkey>'
      end