I have a kid and her passport is valid for another year. we registered our request to receive a visa for Canada. we used her old passport. but I want to apply for a new passport for her, so we do not have to come back to our country. can I transfer her visa to her new passport?
You never transfer visas, and you should never tamper with the sticker in your passport. There are two possibilities for what happens in this situation: either the visa remains valid and you must bring your current passport and also the old passport that contains the visa when you travel; or the visa becomes invalid and you must apply for a new one visa when you get a new passport.
In the case of Canda, the visa remains valid and you need to bring both passports. However, Canadian policy is not to issue visas that last longer than the passport they go in (see Section 13.18 of the Immigration Canada Port of Entry Examinations manual) so, in this case, your daughter will receive a visa that expires when her passport does. If you want a longer-term visa, you will need to renew the passport first.