Compiled Vertex Arrays

I put all the info I want with VertexPointer and etc. and then make several calls do DrawElements to draw the same thing (with some glRotate in the middle). Here’s the problem: how can I use CVA? And do I use then right? Here’s some piece of code:

glVertexPointer(…);
glTexCoordPointer(…);

glLockArraysEXT(…);
glDrawElements(…);
glUnlockArraysEXT();

glRotatef(…);
glDrawElements(…);

glRotatef(…);
glDrawElements(…);

If I put the Unlock after all of the DrawElements it only draws the first one…

Finally, where can I get some source code that uses glextensions?