Introduction


FrameMaker® software from Frame Technology® includes support for a markup language called MML (Maker Markup Language). You can use any standard text editor to create an MML file. Later, you can open the MML file as a FrameMaker document or import it into a FrameMaker template. In a department where different people are responsible for writing and formatting documents, writers can use MML statements to mark up manuals in progress; at the same time, graphic designers can create the formatting specifications in FrameMaker templates.

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:

MML supports many formatting and layout features of FrameMaker. For example, you can use MML to specify: MML cannot define the following (you can add them after you open or import the MML file with FrameMaker):

This manual contains:

MML files

An MML file is a standard ASCII text file containing MML statements and document text. You can create the file with any standard text editor.

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.

Using MML to create FrameMaker documents

You can use MML to:

When you use MML to create FrameMaker documents, use two MML files to describe a document; an MML include file contains formatting information, and an MML document content file contains document text. Using two files makes it easier to correct errors. In addition, you can use one include file to create several documents with the same formatting.

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.

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.

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
In the FrameMaker template, set up the document layout and create paragraph formats.

Creating the include file
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.

For a complete description of the sections in an MML file, see MML file structure.

Creating an include file
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.

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.

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]