in reply to Transliteration inside an XML file

Thank you so much, Monks! I understand that my example wasn't ideal, I should had select parts which are testable in themselves. AnomalousMonk, I will modify my code with your suggestions. I was combining that with choroba's example, but then I saw mirod's post and that model also worked well. I had no time to test things further today, but I will take time to try out different approaches presented here. Thanks for the links too, they are very useful!