Implement Transformers/ElementTransformer::transformMode