3 - WebMaker
The rules for the mapping of a FrameMaker template into HTML are specified in the WebMaker configuration language. FrameMaker documents using the same template may therefore use the same mapping and more than one mapping may be developed for the same template, if this is desirable.
The configuration program is divided into three parts:
The aspects of a generated HTML node are described here. These include specification of a navigation panel, information about the HTML elements TITLE, ISINDEX, ADDRESS, etc. Each general type of node requires one set of node rules.
Rules specifying how to map each FrameMaker paragraph tag to an HTML construct, if actions different than the default are desired.
Rules that associate a FrameMaker character format tag with an HTML character highlight tag.
We would like this paragraph to be translated to:
<HR> <EM>A "SpecialNote" paragraph is enclosed between two horizontal lines.</EM><P> <HR>The code in the configuration file that does this is:
PARAGRAPH SpecialNote TYPE Normal { ACTIONS { write(*,hrule()); write(*,paragraph(emphasise(text()))); write(*,hrule()); } }Paragraphs are assigned a type of paragraph that they are to be mapped into, in this case Normal. The `*' in the write statements tells WebMaker to write into the current node file. The predefined function hrule() specifies the HTML markup for horizontal rule. The predefined function text() contains the text of the paragraph being currently translated. The predefined function emphasise() maps the string returned by the function text(), to the emphasised character highlight. The predefined function paragraph() maps the value of the string parameter, emphasise(text()), to a simple paragraph in HTML.
BR, MR - CERN PTG - 31 May 1994
[Next] [Prev] [Up] [Top] [Contents] [Search]Generated with WebMaker