# File rxml/xforms_transformer.rb, line 61 def text(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=""><text>' << txt << "</text></data></xf:instance>\n" end if args[:xstyle] @view_buffer << "\n<m:output #{args[:xstyle]}" else @view_buffer << "\n<m:output height=\"1ex\"" end if args[:id] @view_buffer << " ref=\"instance('" << args[:id] << "')/text\"/>" else @view_buffer << ">" << txt << "</m:output>" end end