The transformation code for write-web