So let's say I have a three degrees-of-freedom robot with twists ${\xi}_{1}$, ${\xi}_2$, and ${\xi}_3$. The spatial Jacobian is given by $$ J = \begin{bmatrix}\xi_1 & Ad_{g1}{\xi}_2 & Ad_{g12}{\xi}_3\end{bmatrix} $$
I know that $$ Ad_{g1} = \begin{bmatrix}R_1 & p \times R_1\\ 0 & R_1\end{bmatrix} $$
However I am not sure how to calculate $Ad_{g12}$. Do I multiply $Ad_{g1} *Ad_{g2}$ or do I get the Transformation matrix of $\xi_1$ and $\xi_2$ and then use the formula for the adjoint?