Conversion of IDOC XML DTDsXSDs to FF Schema

We are using webMethods IS 6.1 on Solaris with WmEDI 6.1 Module and XSLT Module version 6.0.1. We do the transformation using XSLT Adapter.

We have a requirement of IDOC (FlatFile) mapping to EDI and vice versa.

I would like to know if there is any direct way of converting the IDOC XML schemas (DTDs or XSDs) into the Flat File Schema’s.

Thanks,
Prakash