Allowing transformer to set doctype