Adobe framemaker 6.0 User Manual

Page of 323
49
ADOBE FRAMEMAKER 6.0
 Using MIF Statements
<Para
<PgfTag `Heading'>
<ParaLine
<Marker
<MType 9>
# Identifies this as a cross-reference
<MText `34126: Heading: My Heading'> # Cross-reference source
> # end of Marker
<String `My Heading'>
> # end of ParaLine
> # end of Para
The <MType 9> statement identifies this as a cross-reference marker; it is required. The MText statement 
contains the cross-reference source text, which must be unique. When a FrameMaker product writes a 
cross-reference, it adds a unique number and the paragraph tag to the MText statement, as shown in the 
previous example. While the number is not required, it guarantees that the cross-reference points to a 
unique source. 
Inserting the reference point
The final step in creating a cross-reference is to insert an XRef statement at the position in text where the 
cross-reference should appear. The XRef statement provides the name of the cross-reference format 
(defined in XRefFormat), the source text, and the pathname of the file containing the source:
<Para
<PgfTag `Body'>
<ParaLine
<String `This is a cross-reference to '>
<XRef
<XRefName `Page'>
# Cross-reference format
<XRefSrcText `34126: Heading: My Heading'> # Source text
<XRefSrcFile `'>
# File containing source
> # end of XRef
<XRefEnd>
<String `.'>
> # end of ParaLine
> # end of Para
The format name must exactly match the name of a format defined in XRefFormats. The source text must 
be unique and must match the string in the MText statement in the corresponding reference point marker. 
The XRefSrcFile statement is only required if the reference source is in a different file from the reference 
point. It must be a valid MIF filename (see “Device-independent pathnames” on page 13).
You must also supply an XRefEnd statement after the XRef statement.
How a FrameMaker product writes cross-references
When a FrameMaker product writes a cross-reference, it provides the actual text that will appear at the 
reference point. This information is not required in a MIF input file. The previous example would be 
written as follows: