Skip to main content
Participating Frequently
April 25, 2008
Question

Conditional Text and Import by Reference - How?

  • April 25, 2008
  • 12 replies
  • 1358 views
I am working on a manual that uses examples from three different scripting languages. Conditional text is used to produce each version of the manual for each specific language. The client wants to move these code fragments out of the manual and maintain them in a form that can be executed and tested - thus the code needs to be imported from external text files.
The only problem is that there is a defect in FrameMaker (IMHO) which causes the conditional text information to be lost when a fragment is modified and re-imported. I am using the Convert from Text option.

If I had to guess, I would guess that Text is assumed to be featureless (i.e. lacking in conditional text capabilities) and that FrameMaker won't by design, reimpose whatever the setting were on the old content to the new content.

This leaves me with the thankless task of resetting the conditional text on my examples every time they change - Ugh!

Is there a way I can fix this?

An ideal solution would not require any changes to the imported fragments. A less ideal solution would required me to add meta-data to the fragments (which are generated automatically) as long as that meta-data could be expressed in some ASCII wrapper around the content.
    This topic has been closed for replies.

    12 replies

    Arnis Gubins
    Inspiring
    April 25, 2008
    Vern,

    Are the code "fragments" complete stand-alone blocks that are imported
    as separate insets, or it is one inset with threaded conditionals?

    If it's the former, then you can conditionalize the insets themselves
    and if they are imported by reference, then there shouldn't be any
    further requirements to manipulate them inside FM.
    Legend
    April 25, 2008
    Vern,

    This would be relatively straightforward with structured Frame, using attribute values to denote conditions. You could have container elements assigned to whatever output you wanted and import the fragments into them... the structural markup would remain permanent and available for conditional content management.

    Russ