Apologies if the title is garbage. I couldn't think up anything more pertinent, as it's really just a notational question.
In Hartshorne, p.141, Proposition 6.11, it is shown that Weil divisors are Cartier (under some assumptions).
My question is what on earth does it mean for $\mbox{Spec } \mathcal{O}_x$ to be a local scheme; moreover, how does one induce a Weil divisor $D_x$ on it?
In my head this is supposed to be restricting $D$ to a given point; the construction then gives a local equation for $D$ at $x$.
However, I am struggling to see how the scheme $\mbox{Spec } \mathcal{O}_x$ corresponds at all to $x$: it's not even a point unless the stalk is a field.
Thanks for any help offered.