Adding synchronization to XSLT tranformation