# File lib/xtemplate/xpath.rb, line 639
    def args_split(args)
      args = unsanitize(args)
      i = 0
      l = false
      s = 0
      escape = false
      inref  = false
      ids = []
      args.each_byte{|c|
        case c
        when ?', ?"
          if( escape )
            escape = false
          else
            if( l )
              l = false
            else
              l = true
            end
          end
        when ?\\
          escape = true
        when ?,
          if( !l )
            ids.push(args[s..i].chop)
            s = i + 1
          end
        end
        i += 1
      }
      ids.push(args[s..i])
      ids.collect{|s| s.strip.gsub(/(\A['"])|(["']\z)/,'') }.reject{|s| s.empty? }
    end