I have the vector $e_1=(1,0,...,0)^T$ in $\mathbb{R}^n$.
I would like to rotate it by angle $\theta_2$ along axis $x_2$, resulting in the vector $r_1 = (\cos(\theta_2),\sin(\theta_2),0,...,0)^T$.
Continuing these rotation by angle $\theta_i$ along axis $x_i$ for $2 < i \leq n$, what would be the form of the resulting vector?
I couldn't find a general rotation formula.
The reason that there is no general formula, is that the rotation that you are seeking is not unique. To rotate about the $x_2$ axis you need to identify a plane which is normal to $x_2$. For $n > 3$ this plane in not unique. There are many planes perpendicular to $x_2$ which live in the space spanned by $\{x_1,\, x_3,\, ...,\, x_n\}$.