Document output transformer in tree