Expand DTD callback arguments, add documentation.