If the position state $|x\rangle$ is complete and orthonormal I understand that $$\langle x | y \rangle = \delta(x-y).\tag1$$
However, why exactly $$\langle x' | x \rangle = \delta(x'-x)\tag2$$
How do we know that $x'$ is orthogonal to $x $?
here, they use eq. (2), but we don't know anything about $x'$.
And the explications here and here seems to always assume the statement above. Is it only something with the notation that I don't understand or is it something else?