fix the dual use of DTD and XSD