My question arose out of the following question in Qing Liu's Algebraic Geometry and Arithmetic Curves:
Let $X, Y$ be schemes over a locally Noetherian scheme $S$, with $Y$ of finite type over $S$. Let $x\in X$. Show that for any morphism of $S$-schemes $f_{x}:Spec(\mathcal{O}_{X,x})→Y$, there exist an open subset $U$∋$x$ of $X$ and a morphism of $S$-schemes $f:U→Y$ such that $f_{x}=f\circ i_{x}$, where $i_{x}:Spec(\mathcal{O}_{X,x})→U$ is the canonical morphism.
A solution for which is given here: Extending a morphism of schemes. The solution given reduces to the case that $X$, $Y$ and $S$ are affine and thus we can assume that, if $X = \text{Spec} A$, $Y = \text{Spec} B$ and $S = \text{Spec} R$, then $A$ and $B$ are $R$-algebras. I can't, however, seem to convince myself that we can reduce to $S$ affine, as that should require us to be able to restrict to open subsets of $X$ and $Y$ so that their respective structural morphisms both map into the same affine subscheme of $S$. Is it not possible that the images of the structural morphisms are totally disjoint?