I wonder if the document type should just provide the type name. Maybe it could be optionally overridable when registered.