xliffRoundTrip automates a roundtrip between any XML file and XLIFF. It consists of 2 XSL files + Java source. The 1st transforms XML to XLIFF. The 2nd transforms that XLIFF back to the original XML, i.e., after a language translation on the XLIFF file.
Note: If you are interested in XLIFF roundtrip for the DITA Open Toolkit, please visit my other project, DITA-XLIFF Roundtrip for OT https://sourceforge.net/projects/ditaxliff/files/