My daughter has valid visas for the United Kingdom and the Schengen area but has passport validity of 4 to 5 months only. Can she still travel to both these countries?
The visas granted could not have been granted beyond the passports validity date. She can definitely travel to these countries before the visa/passport has expired. If the duration of stay is longer than the expiry date, then obviously she will have to renew her passport from your countries embassy/consulate and apply for an extension of her visas/stay permit.
As far as the Schengen countries are concerned, she can travel under the condition that the passport remains valid for at least three months after she leaves the Schengen area. Note also that her passport should not be more than 10 years old and that the renewed passports that are more than 10 years old are not allowed.