
This manual documents a number of enhancements to the MML syntax that were developed by Softline International Inc. The extensions were developed for two reasons:
Important: If you use FrameMaker to create or edit an MML file, save the file as Text Only using the Save As command.
An MML filename must end with .mml. This suffix alerts FrameMaker that the file is an MML file and needs to be interpreted (by the mmltomif program) before it is imported into, or opened as, a FrameMaker document. For more information on how MML files are processed, see Appendix D of FrameMaker Reference.
After you open or import an MML file, you can modify, print, and save it using FrameMaker commands. However, any changes you make in FrameMaker are not reflected in the original MML file. Thus, if you want the MML file to serve as the master source for the document, you must make the changes to the MML file.
If you use a FrameMaker template to specify formatting, your include file can be very brief. It lists the paragraph formats in the template's Paragraph Format Catalog and any character formats and MML macros you want to use.
If you want to keep formatting information and document content in one file, the file should contain the information that would appear in an include file followed by the information that would appear in a document content file.
For a complete description of the sections in an MML file, see MML file structure. For a sample FrameMaker document created from a template, an include file, and a document content file, see Specifying document format with a FrameMaker template.
Setting up the template
Creating the include file
For a complete description of the sections in an MML file, see MML file structure.
Creating an include file
However, if have large numbers of documents to convert to FrameMaker the approach you use can save considerable manual effort during the conversion. If you can fully define your document using the MML syntax then you should use the second approach. The intial opening and saving of documents should be done using the FMBatch utility since opening and saving relatively large (more than 50 pages) can consume at least five minutes even on the fastest of processors. Setting up a batch job to open MML files and save them in FrameMaker allows you to put your time to better use while your documents are being converted.
If your documents are not fully definable in MML or you want to the document to take on a differrent format when it is opened in FrameMaker then you must prepare a template and import the document into the template. This process is even more time consuming than opening an MML document directly. FMBatch should always be used in this situation to process your files in batch mode.
Unfortunately not all platforms which support FrameMaker also support the FMBatch utility (the Apple MacIntosh for example). To increase your productivity in these situations, Softline has provided a number of MML statements which allow you to automatically include format files which you have seperately prepared in MIF format.
Specifying document format with a FrameMaker template
The easiest way to use MML is to specify formatting information in a FrameMaker template. In addition to the template, you use a simplified include file and a document content file to specify the document text.
In the FrameMaker template, set up the document layout and create paragraph formats.
Use a standard text editor to create the include file. It should contain:
Creating the MML document content file
Use a standard text editor to create the document content file. It should contain:
Importing the MML file into the template
To create a FrameMaker document from the MML file, use the FrameMaker New command to create a new document from a template. Then use the Import command to import the MML document content file into the document. Use the Save As command to save the resulting document under a new filename.Specifying document format with MML
When you use an include file and a document content file to create a FrameMaker document, the include file describes document formatting; the document content file contains the document text.
Use a standard text editor to create an include file describing document formatting. It should contain the following sections:
Creating a document content file
Use a text editor to create the document content file. It should contain:
Opening the document content file
To create a FrameMaker document from the include and document content files, open the document content file with FrameMaker.Relative Merits of Each Approach
Users are often unclear as to when to use which approach. If you are doing relatively small documents or only have a few documents to import into FrameMaker either approach will do.MML As An Automated Conversion Tool
Most FrameMaker documentation which discusses the writing of filter software encourages developers to write their filter programs to produce output in MIF format. If you are developing filter software there are a number of reasons why you should consider developing your filter to produce MML instead of MIF:
[Home Page | Download Postscript | Custom API | Conversion Services | Previous | Forward]