Iran 's president , Mohammad Khatami , represented the Islamic Republic at the pontiff 's funeral Friday in Rome .