Inserting Descendants Automatically In Containers - Adobe 65030365 - FrameMaker - PC Developer's Manual

Structure application developer's guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

9
I n s e r t i n g d e s c e n d a n t s a u t o m a t i c a l l y i n c o n t a i n e r s

Inserting descendants automatically in containers

In the definition of a container, you can specify nested descendants to insert automatically.
Whenever an end user inserts the container in a document, the descendants are inserted
automatically along with it. This makes it convenient for users to work with containers that
always begin with the same structure.
To insert descendants automatically, insert an AutoInsertions element anywhere after
the general rule (or optional validity specification) and before the format rules. For the first
descendant, insert an InsertChild element and type the element tag. Then for each
additional descendant, insert an InsertNestedChild element and type the tag. You can
have one InsertChild element and any number of InsertNestedChild elements.
For example, this autoinsertion rule specifies that a new Section begins with a nested
Head:
Element (Container): Section
General rule: Head, Para+
Automatic insertions
If the last descendant in the autoinsertion sequence is a container that allows text, the
insertion point is placed automatically inside the container, ready for the end user to add
text:
Section
FrameMaker cannot insert sibling elements automatically. In the Section and Head
example above, even though a Section may always begin with a Head and then a Para,
you can have only the Head inserted automatically and not a Para too.
You can, however, have FrameMaker insert a sequence of descendants, in which each
nested descendant has one child element inserted along with it. For example, this
autoinsertion rule specifies that a new List has a nested Item, and the Item has a nested
Para:
Element (Container): List
General rule: Item+
Automatic insertions
This is the structure of the new List:
Structure Application Developer's Guide
Automatically insert child: Head
Head
Automatically insert child: Item
and nested child: Para
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents