@contrex,
My post got mangled. I meant to write:
I believe the tenses are incorrectly matched in the above, and that it should be either:
Were he to violate the secrecy of confession, sacrilege meriting excommunication would be committed
or
Were he to have violated the secrecy of confession, sacrilege meriting excommunication would have been committed.