I think that this is permitted with the permission of the bishop for a person who for some reason cannot be buried from his own church. An example might be a person who was married to a Catholic and attended Mass, but who had never formally converted. I was present at the funeral for the father of a priest who was a protestant which was held in a Catholic church. The gentleman had attended Mass with his wife, but had never become a Catholic. The bishop himself was there, along with a large number of priests from our diocese.