Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

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

New Here ,
Jul 21, 2008 Jul 21, 2008

Copy link to clipboard

Copied

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?
TOPICS
Structured

Views

822
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jul 22, 2008 Jul 22, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 30, 2008 Jul 30, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 30, 2008 Jul 30, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 31, 2008 Jul 31, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Aug 01, 2008 Aug 01, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 16, 2009 Jan 16, 2009

Copy link to clipboard

Copied

LATEST
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]

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines