For training on a dead pet ghost, it needs to be someone else's pet.... they will get the gump asking if they wish to accept the res, if they say no the ghost will still be there and you can keep trying.
If it's your own pet, the game assumes you must automatically want the res to happen, so never asks you and just brings them straight back to life.