Even Bernard of Clairveaux was able to understand that he was a sinner and that Christ died in his place and his sin was transferred to Christ and (at least) Christ's innocence was transferred to him. He wrote the humn "O Sacred Head Now Wounded" to express this.
Here are the lyrics, sorry about the guitar chords, it was the only one I could find.