dia to sml: make use of the Element concept in transformer