Omni Systems, Inc. Mif2Go User's Guide, Version 55

<< Prev | Next >>

> 13 Converting to HTML/XHTML > 13.9 Importing HTML files as insets

## 13.9 Importing HTML files as insets

To include existing HTML code as an inset, by importing HTML from a source other than the FrameMaker files you are converting, use a FrameMaker HTML Macro marker. The content of the marker should look like this:

<$.\\filename.htm>

where filename.htm is the name of the HTML file you want to import. Place the marker in your FrameMaker document wherever you want the imported HTML to appear in your Mif2Go output.

If the HTML you are importing is not a fragment, but a complete HTML file with both <head> and <body> sections, to omit all but the <body> part use a Mif2Go macro expression (see §28.6 Using expressions in macros) in the content of the HTML Macro marker. Code such as the following would select all text between <body> and </body> from filename.htm:

<$(($.\\filename.htm after "<body>") before "</body>")>

The single dot after the second $ indicates that the file you are importing is in the current directory; if it is in some other directory, use a full path name.

Note: You must use the two-backslash form of separator: backslash (\) instead of a forward slash (/) so that the Mif2Go expression evaluator does not take it as a division operator; and two of them, the first to escape the second backslash in the FrameMaker marker.