The ratio of number of moles of a component present in the mixture and the total number of moles present in the mixture is known as the mole fraction of substance concerned.
Let number of moles of solute in Solution = n
Number of moles of solvent in Solution = N

Also X1 + X2 = 1
Mole fraction is a pure number. It will remain independent of temperature changes.