Support multiple document types