load DTDs in order to expand entities

This fixes transforming the bulk of current content, Please speed review