Earlier , Israeli Prime Minister Ariel Sharon said any talks with Palestinian leaders depend on whether they can stop militant attacks such as the huge explosion in Gaza Sunday that killed five Israeli soldiers and wounded five others .