module Nokogiri::XSLT
def quote_params(params)
##
def quote_params(params) parray = (params.instance_of?(Hash) ? params.to_a.flatten : params).dup parray.each_with_index do |v, i| parray[i] = if i % 2 > 0 if v =~ /'/ "concat('#{v.gsub(/'/, %q{', "'", '})}')" else "'#{v}'" end else v.to_s end end parray.flatten end