Roma is the TEI tool for creating schemas from P5 [ODD] specifications.
See http://www.tei-c.org/Roma/