# File rxml/xforms_transformer.rb, line 132 def link(doc, href, txt="", args={}, &block) @view_buffer << "\n<m:button" if args[:xstyle] @view_buffer << ' ' << args[:style] else @view_buffer << " height=\"1ex\"" end @view_buffer << '><m:label>' << txt << '</m:label>' # If no action provided, default to use xf:load the url if block yield doc else @view_buffer << '<xf:load ev:event="DOMActivate" resource="' << href << '"/>' end @view_buffer << '</m:button>' end