Let $X$ be an integral scheme over $S$ and let $Y$ be a scheme of finite type over $S$. Let $x \in X$. How can I show that a morphism from $Spec \ \mathcal{O}_{X,x}$ to $Y$ can be extended to a morphism from some neighbourhood of $x$?
Well, I am not very good even with first steps towards a solution. The only idea is that we probably should find a way to extend a homomorphism to the local ring (more precisely, algebra) to a homomorphism to some $\mathcal{O}_{X}(U)$.