Hello Dan,
The order in the manual is correct, so no typo there and it should correspond to P1 and P2 values in the exported XML file (at least, if exported from version 1.4.0). If you are using older version, you can compare P1 and P2 values in GUI with the XML file that you've got on export. At some moment for the backward compatibility the labels of P1 and P2 parameters were swapped in XML.
It means that P1 and P2 order is different from the one used in OpenCV.
As for the global transform, it's from local to global system, so everything seems to be correct here in your assumption.