# File rxml/xforms_transformer.rb, line 288 def input(doc, id, value, type, options={}) # Create model instance only when there's no xpath if options[:xpath].nil? @model_buffer << "\n" << '<xf:instance id="' << id << '"><data xmlns=""><txt>' << value << "</txt></data></xf:instance>\n" end @view_buffer << "\n<m:input #{options[:xstyle]} height=\"1ex\" ref=" << "\"instance('" << id << "')/" if options[:xpath].nil? @view_buffer << "txt\"/>" else @view_buffer << options[:xpath] << "\"/>" end end