Skip to main content
Participating Frequently
July 21, 2008
Question

How can I display the string "ZBAA/PEK-ADSB"?

  • July 21, 2008
  • 6 replies
  • 901 views
In xml file,these elements are following:
ZBAA
PEK
ADSB

When I import the xml file to FrameMaker,I want to display "ZBAA/PEK-ADSB" in a paragraph.the element of "airportCode" is a Marker element,The header of fm file will call it. What should I control the display?
This topic has been closed for replies.

6 replies

Participating Frequently
January 16, 2009
Hello Lynne,

This sounds neat. A good way to use prefixes and suffixes.
Thank you for this tip.

With kind regards,
Franz.
[SYSTEC - the document processing company.]
[excessive signature deleted by host]
Inspiring
August 1, 2008
Thanks, Van!


zhaop,


Two ways to make multiple elements appear on one line are:


  1. In a text format rule, specify that the elements are text ranges. Text ranges are formatted within the paragraph for the containing element.
  2. Let the elements remain distinct paragraphs, but set the pagination placement property to Run-in Head.
--Lynne
Known Participant
July 31, 2008
Jack,

Lynne's solution WILL display the string "ZBAA/PEK-ADSB" on one line, unless it comes near the end of the line, in which case Frame may break the line at / or -; however, you can specify that Frame NOT break at these characters by deleting them in Format > Document > Text Options.

Van
Known Participant
July 31, 2008
Lynne,<br />Thank you for your reply. But I want to display the string of "ZBAA/PEK-ADSB" as the same line.How can I control these elements in order to display as the same line in framemaker?<br />The string "ZBAA" need to appear in my running header.I already use <$marker1> and <$marker2> in my running footer.So I can only use <elemtext[airportCode]> for my running header.<br />--zhaop
Inspiring
July 30, 2008
zhaop,

Why have you made the airportCode element a marker? Considering your earlier question about running headers and footers, I wonder if it is because you want it to appear in the running header? Markers are text strings associated with a point in a document that do not display. Since you want the airportCode to appear in a paragraph, I recommend making it a container instead. Is there another element that contains the three you've listed? For example:

<airport>

  <airportCode>ZBAA</airportCode>

  <airportThreeCode>PEK</airportThreeCode>

  <airportName>ADSB</airportName>

</airport>

If so, define all four elements (airport, airportCode, airportThreeCode, and airportName) to be containers. Specify the desired paragraph format for airport. For the other three elements, provide a text formatting rule that defines them to be text ranges. Give airportCode a suffix (or airportThreeCode a prefix) of /. Give airportThreeCode a suffix (or airportName a prefix) of -.

If there is no element that corresponds to the paragraph, you can still make all three of the elements containers, but in the pagination properties of the first two, set Placement to RunInHead. In this case, you can insert the / and - delimiters as default punctuation for the run-in heads rather than as prefixes or suffixes. (You could still use prefixes or suffixes; both techniques produce the same result.)

For your running header/footer, where you currently use <$marker1> or <$marker2> to display airportCode, instead use <elemtext[airportCode]>.

--Lynne

Legend
July 22, 2008
zhaop,

You'll need to either:

- Use an XSLT stylesheet during import (FM 7.2 or later) to alter the XML for you, such that it displays the way you want

- Use a custom import/export API client to modify the content during import.

I would think that the first option would be much more favorable.

Russ