# File rxml/xforms_transformer.rb, line 158
      def text(doc, txt="", options={})
        # If there's id but no xpath, we will create a default instance data for 
        # the textoutput.
        if options[:id] and options[:xpath].nil?
          @model_buffer << "\n" << '<xf:instance id="' << options[:id] << '"><data xmlns=""><text>' << txt << "</text></data></xf:instance>\n"           
        end
    
        if options[:xstyle]    
          @view_buffer << "\n<m:output #{options[:xstyle]}" 
        else 
          # Default one line text
          @view_buffer << "\n<m:output height=\"1ex\""
        end
        if options[:id]
          xpath = "text"
          xpath = options[:xpath] if options[:xpath]
          @view_buffer << " ref=\"instance('" << options[:id] << "')/#{xpath}\"/>" 
        else 
          @view_buffer << ">" << txt << "</m:output>" 
        end
      end