document type resolver