Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

14 Producing DITA XML > 14.11 Exporting FrameMaker variables to DITA XML > 14.11.2 Specifying a treatment for FrameMaker variables


14.11.2 Specifying a treatment for FrameMaker variables

To specify a treatment for FrameMaker user variables and a few FrameMaker system variables in DITA XML:

[DITAOptions]

; VariableType = Text (default),

;  Entity (for compatibility with DITA-FMx import),

;  or Conref (referring to a variable library file).

VariableType = Text

This setting affects all FrameMaker user variables in your document and also the following FrameMaker building-block system variables:

Volume Number

Chapter Number

Section Number (FrameMaker version 9+)

Subsection Number (FrameMaker version 9+)

When VariableType=Text (the default), FrameMaker variables are converted to text before they are included in DITA XML output.

When VariableType=Entity, each FrameMaker variable used in a topic becomes an entity. The entity name is the name of the variable, with spaces and any punctuation removed; case is preserved. The entity definition is plain text only; character formatting present in the FrameMaker definition of the variable is omitted. Each topic contains entity declarations only for the entities actually used in that topic. This method allows DITA-FMx to recognize FrameMaker variables on re-import of the generated DITA files.

When VariableType=Conref, the following four settings are effective:

[DITAOptions]

; VariableFile = file for referencing variables

VariableFile = ditavars.dita

; VariableTopicID = topic ID for the single topic in the VariableFile

VariableTopicID = varset

; VariableElement = wrapper element for variables,

;  valid in a dd element.

VariableElement = ph

; WriteVariableFile = No (default) or Yes (write a file containing all

; variables defined in the Frame file after processing that file).

WriteVariableFile = Yes

The VariableFile file for referencing variables contains a single topic, with a single definition list in the <body>:

<dlentry>

  <dt>varname</dt>

  <dd><ph id="varname">variable content</ph></dd>

</dlentry>

Each definition term is the name of a variable with spaces and punctuation removed. The corresponding description has an ID identical to the name, and content identical to the FrameMaker variable definition, except in plain text only.

Re-importing to FrameMaker, you would see (for example):

<ph conref="varfile.dita#varsetid/varname"></ph>

If the file name and topic ID match your setting, you can be sure that varname is a FrameMaker variable, and you can retrieve its definition.



14 Producing DITA XML > 14.11 Exporting FrameMaker variables to DITA XML > 14.11.2 Specifying a treatment for FrameMaker variables