uses templates for dtds to get header info
tweaks to dtd output