next up previous contents index
Next: Errors and warnings Up: 4.5.2 Summarizing SGML data Previous: Location of support

The SGML to SOIF table

 

The translation table provides a simple yet powerful way to specify how an SGML document is to be summarized. There are four ways to map SGML data into SOIF. The first two are concerned with placing the content of an SGML tag into a SOIF attribute.

A simple SGML-to-SOIF mapping looks like this:

        <TAG>              soif1,soif2,...

This places the content that occurs inside the tag ``TAG'' into the SOIF attributes ``soif1'' and ``soif2''. It is possible to select different SOIF attributes based on SGML attribute values. For example, if ``ATT'' is an attribute of ``TAG'', then it would be written like this:

        <TAG,ATT=x>         x-stuff
        <TAG,ATT=y>         y-stuff
        <TAG>               stuff

The second two mappings place values of SGML attributes into SOIF attributes. To place the value of the ``ATT'' attribute of the ``TAG'' tag into the ``att-stuff'' SOIF attribute you would write:

        <TAG:ATT>           att-stuff

It is also possible to place the value of an SGML attribute into a SOIF attribute named by a different SOIF attribute:

        <TAG:ATT1>          $ATT2

When the summarizer encounters an SGML attribute not listed in the table, the content is passed to the parent tag and becomes a part of the parent's content. To force the content of some tag not to be passed up, specify the SOIF attribute as ``ignore''. To force the content of some tag to be passed to the parent in addition to being placed into a SOIF attribute, list an addition SOIF attribute named ``parent''.

Please see Sections 4.5.2 and 4.5.3 below for concrete examples of these mappings.



Duane Wessels
Wed Jan 31 23:46:21 PST 1996