def text(doc, txt="", options={})
if options[:id] and options[:xpath].nil?
@model_buffer << "\n" << '<xf:instance id="' << options[:id] << '"><data xmlns=""><text>' << txt << "</text></data></xf:instance>\n"
end
if options[:xstyle]
@view_buffer << "\n<m:output #{options[:xstyle]}"
else
@view_buffer << "\n<m:output height=\"1ex\""
end
if options[:id]
xpath = "text"
xpath = options[:xpath] if options[:xpath]
@view_buffer << " ref=\"instance('" << options[:id] << "')/#{xpath}\"/>"
else
@view_buffer << ">" << txt << "</m:output>"
end
end