Water is lost from the leaves through evaportation and diffusion, meaning there is a shortage of water in the leaves, so more is drawn up the plant through the xylem vessels to replace it, meaning that more water is drawn up again through the roots, so there is a constant stream of water through the plant. This carries mineral ions dissolved in the water along with it.