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