Exposing document types