# File rxml/working2/xforms_transformer.rb, line 200 def image(doc, id, src, args={}) widget = "image" widget = args[:widget] if args[:widget] @view_buffer << "\n<m:#{widget} #{args[:xstyle]}" # if id, get the image from predefined instance data, otherwise, just # use the src path if id and args[:xpath] @view_buffer << " ref=\"instance('" << id << "')/" if args[:xpath] @view_buffer << args[:xpath] << "\">" else @view_buffer << src << "\">" end else @view_buffer << '>' << src end @view_buffer << "</m:#{widget}>" end