i have quite a few articles, talks, and books i could recommend on the whole subject of dying from a Buddhist perspective. First though, i would like to ask you if this is abstract, hypothetical questions (nothing wrong if it is) or if you know someone who is dying and want to be of help? The reason i ask this is because dying with a calm mind is the most important thing one can do from a Buddhist perspective. For this reason, it would be unwise to cause a person to question his/her beliefs when drawing close to death. A Christian should be reminded of their good deeds and focus on a loving Jesus. A person who is an atheist might find music or nature to be calming. A clean and peaceful environment is always important. The important thing here is to speak to the individual and to not do anything that remotely causes a mind of unrest. For a person who is Buddhist, reading, reciting, or hearing meaningful verses, chanting, and taking refuge are all important elements to help the dying process. Letting go of possessions and mending any fences can be helpful, but again, it is important NOT to force anything. Most Buddhist teachers of any tradition will probably tell you that the best thing you can do is to focus on your practice right now. If you are fortunate enough to have some awareness that you are about to die you should do your regular practice as best as you can. So, if you are working on a breath meditation, do that. If you are doing metta, do that. Sometimes, a person can't do these practices themselves because of pain, medications, or a comatose state and it helps to have a teacher or other person there who can help them. This is why i believe living near a Sangha and having a supportive environment is important.
Remember though that many many people have no knowledge that they are about to die. Death can come in an instant. All the practice you do now and all the wholesome qualities that you develop will serve you well when you are dying. I recently listened to this talk and found it interesting.http://www.bswa.org/modules/mydownloads ... 12&lid=183
ps. i have quite a few articles and books from various Buddhist traditions, plus a powerpoint i did , etc. Send me a PM if you want me to email any of these to you.