Let $(X_\alpha)_{\alpha \in A}$ be a collection of topological spaces. Their disjoint union $X:=\bigsqcup\limits_{\alpha \in A} X_\alpha$ is defined as the set of all ordered pairs $(x, \alpha)$ with $\alpha \in A, x \in X_\alpha$. The disjoint union topology is defined to be the one where sets are open if and only if their intersection with each $X_\alpha$ is open in $X_\alpha$.
I have checked that this is a topology and that it has the property (called the characteristic property) that for any topological space Y: $$ (f: X \rightarrow Y \textrm{ is continuous} )\Leftrightarrow ( \left. f \right\rvert_{X_\alpha} \textrm{ is continuous for each } \alpha \in A ) $$
I'm trying to prove that the disjoint union topology is the unique topology with the characteristic property. Let $\tau_d$ be the disjoint union topology and $X_d$ be the disjoint union equipped with it, as well as $\tau_s$ be another topology with the characteristic property, and $X_s$ the disjoint union equipped with $\tau_s$.
Because $\tau_d$ has the characteristic property, to prove that the identity $Id_{ds}: X_d \rightarrow X_s$ is continuous, it is enough to see that $Id_{ds}|_{X_\alpha}$ is continuous for any $\alpha$. Similarly, because $\tau_s$ has the characteristic property, to prove that the identity $Id_{sd}: X_s \rightarrow X_d$ is continuous, it is enough to see that $Id_{sd}|_{X_\alpha}$ is continuous for any $\alpha$.
This is where I am stuck. For example, if $U \in \tau_s$, then $\left( Id_{ds}|_{X_\alpha}\right)^{-1}(U) = U \cap X_\alpha$, but I cannot conclude that this set is open in $X_\alpha$ with the topology induced by $\tau_d$ (intersections of all sets in $\tau_d$ with $X_\alpha$).
The other way around, if $U \in \tau_d$, then $\left( Id_{sd}|_{X_\alpha}\right)^{-1}(U) = U \cap X_\alpha$. $U \cap X_\alpha$ is indeed open in $X_\alpha$ by definition of $\tau_d$, but I would need it to be open in the subspace topology induced by $\tau_s$ to $X_\alpha$ (which might not coincide with the initial topology on $X_\alpha$) in order to know that $Id_{sd}|_{X_\alpha}$ is continuous.
I'm getting the feeling that maybe I'm reading wrongly what it means for $f|_{X_\alpha}$ to be continuous? But how can it be anything else?...
Thank you for your time, I appreciate any help.