Next: FORMAT
Up: GPD Language
Previous: Notes about the
The EXPAND section of a GPD is used to declare the default view (GPD)
which should be used when an item is expanded from this view. For
example, assume that you are viewing an object in the `flat text' view,
which consists of a series of paragraphs. In the `flat text' GPD, you
could declare in the EXPAND section that paragraphs should in turn be
expanded in the `notes' view, as in figure
7.22.

: The `flat text' GPD
Assuming that you are expanding an object of type `paragraph',
determining which view to use when expanding that object is carried out
as follows:
- First, the object being expanded (the ``expansion object'') is
checked for the attribute EXPAND AS:paragraph and uses
the GPD named there. Such an attribute might look like figure
7.23, in which case the `paragraph's
would be expanded as `notes'.

: `EXPAND AS' attribute group example 1
- Secondly, the composition root (the root of the composite
object) is checked for the attribute EXPAND
PART:paragraph and the GPD named there is used (see figure
7.24).

: The `EXPAND PART' attribute group
- Thirdly, the GPD object itself is checked for the attribute
EXPAND:paragraph, and the GPD named there is used.
- Fourth, the expansion ``EXPAND AS'' attributes are checked in
the expansion object. If the values for all the fields are the
same, then that value is used for the expansion.
For example, if the ``EXPAND AS'' attributes looked like figure
7.25, and you are expanding a paragraph
which has not found an expansion GPD yet, `notes' will be used
as all other ``EXPAND AS'' values use `notes'.

: `EXPAND AS' attribute group example 2
- Fifthly, the tag (in this case `paragraph') is assumed to be
the name of a GPD.
Next: FORMAT
Up: GPD Language
Previous: Notes about the
Martin Sjolin
Mon May 29 19:53:45 MET DST 1995