fix some problems in Pure ODD processing (to DTD)