Statement
For any collection $\mathfrak{X}:=\{X_i:i\in I\}$ if $J\subseteq I$ then $X_J:=\Pi_{j\in J}X_j$ is embeddable in $X_I:=\Pi_{i\in I}X_i$
To prove the statement I tried to proceed as follows.
For a fixed $\xi\in X_I$ we define the function $f:X_J\rightarrow X_I$ through the condiction $$ [f(x)](i):=\begin{cases}x(i),\,\,\,\text{if}\,\,\,i\in J\\\xi(i),\,\,\,\text{otherwise}\end{cases} $$ for any $x\in X_J$. So we observe that if $f(x)=f(y)$ for any $x,y\in X_J$ then $x(j)=[f(x)](j)=[f(y)](j)=y(j)$ for any $j\in J$ and so $x=y$ thus $f$ is injective. Then we observe that $(\pi_i\circ f)$ is equal or to $\pi_i$ if $i\in J$ or to a constant function $\xi_i$ each of which is continuous so that by universal mapping theorem for products we conclude that $f$ is continuous too.
Now unfortunately I can't prove that the function $f^{-1}$ is continuous that is the function $f$ is open so I ask to do it. Then I ask to prove that $f[X_J]=\Pi_{i\in I}Y_i$ where $Y_i=X_i$ if $i\in J$ and otherwise $Y_i=\{\xi_i\}$. Finally I ask if using the preceding result is possible to prove that if $X_I:=\Bbb R^{i-1}\times\Bbb R\times\Bbb R^{n-i}$ and $X_J:=\Bbb R^{i-1}\times\Bbb R^{n-i}$ then for any open $U$ there exist an open set $U'$ in $\Bbb R^{i-1}$ and an open set $U''$ in $\Bbb R^{n-i}$ such that $U\cap f[X_J]=U'\times\{\xi_i\}\times U''$. So could someone help me, please?