๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.framemaker.sgml
7 messages
7 total messages Started by zhaop Tue, 22 Jul 2008 00:10
How can I display the string "ZBAA/PEK-ADSB"?
#869
Author: zhaop
Date: Tue, 22 Jul 2008 00:10
6 lines
1007 bytes
In xml file,these elements are following:
<airportCode>ZBAA</airportCode>
<airportThreeCode>PEK</airportThreeCode>
<airportName>ADSB</airportName>

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?
Re: How can I display the string "ZBAA/PEK-ADSB"?
#874
Author: Russ Ward
Date: Tue, 22 Jul 2008 13:32
11 lines
972 bytes
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
Re: How can I display the string "ZBAA/PEK-ADSB"?
#816
Author: Lynne_A._Price
Date: Wed, 30 Jul 2008 14:35
17 lines
2388 bytes
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
Re: How can I display the string "ZBAA/PEK-ADSB"?
#822
Author: JackSony
Date: Thu, 31 Jul 2008 05:13
4 lines
1006 bytes
Lynne,
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?
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.
--zhaop
Re: How can I display the string "ZBAA/PEK-ADSB"?
#828
Author: Van_Kurtz
Date: Thu, 31 Jul 2008 12:48
5 lines
994 bytes
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
Re: How can I display the string "ZBAA/PEK-ADSB"?
#832
Author: Lynne_A._Price
Date: Fri, 01 Aug 2008 17:17
9 lines
1122 bytes
Thanks, Van!

zhaop,

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

* In a text format rule, specify that the elements are text ranges. Text ranges are formatted within the paragraph for the containing element.
* Let the elements remain distinct paragraphs, but set the pagination placement property to Run-in Head.
--Lynne
Re: How can I display the string "ZBAA/PEK-ADSB"?
#253
Author: systecgmbhnuremberg
Date: Fri, 16 Jan 2009 11:17
22 lines
1415 bytes
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.]
 <http://www.systec-gmbh.com/sites/toolbox.php>
 <http://www.systec-gmbh.com/sites/ditapack.php>
 <http://www.systec-gmbh.com/sites/3dpack.php>
____________
|Schreiberhauer Str. 5 |D-90475 Nuernberg - Germany
|Phone +49 911 998955-625 |Fax +49 911 998955-663
|e-Mail info@systec-gmbh.com |Internet: www.systec-gmbh.com
|Redaction, Translation: www.systec-td.de |ePublishing, Solutions: www.systec-it.de
____________
|CEO: Dipl.-Ing. (FH) Georg Eck, Dipl.-Btw. (FH) Manfred Papp
|Amtsgericht N๏ฟฝrnberg HRB 9369
|Umsatzsteuer-Identifikationsnummer DE 133560519
______________
|"We innovate things that work better."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads