Allow defining a global document type statically 

May need to be improved to be more dynamic.