Sweating onions means to cook them gently on medium low heat until they soften up and become kind of transparent.