in reply to FrameMaker and Perl

I haven't used the FDK, but usually the way I process Frame files is by using Perl on the MIF. MIF is very parsable, especially if you trust Frame to insert comments when it closes a wrapping element (I do).