Israeli President Moshe Katsav has shaken hands with Syrian President Bashar al-Assad as both attended the funeral of Pope John Paul II in Rome .