Files
cdesktop/cde/doc/C/guides/infoAPg/ch11.sgm

128 lines
3.6 KiB
Plaintext

<!-- $XConsortium: ch11.sgm /main/4 1996/10/11 09:24:44 cdedoc $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->
<chapter id="infoapg.div.11">
<Title id="S3CTVcBfQJ9X3cS">Table of Contents Architectural Forms</Title>
<IndexTerm><Primary>architectural forms</Primary>
<Secondary>table of contents</Secondary></IndexTerm>
<Para>
If you already have a table of contents document instance in
SGML format, you do not have to create a new table of contents.
Instead, you can apply
Information Manager architectural forms to the
elements in your existing table of contents DTD so
Information Manager knows
how to treat the table of contents information.
</Para>
<Note>
<Para>
For information on creating an SGML table of
contents that conforms to the
Information Manager <Filename>dtinfoTOC.dtd</Filename>,
see <Link Linkend="n8aJ92dBIsI9X3cS">Creating a Table of Contents</Link>.
</Para>
</Note>
<Para>
You can add these attributes to your existing table of contents
DTD:
</Para>
<VariableList>
<VarListEntry>
<Term><SystemItem>DTINFO.TOC</SystemItem></Term>
<ListItem>
<Para>Apply
<SystemItem>DTINFO.TOC</SystemItem> to elements that designate tables of
contents.
</Para>
<Para>
Entity name: <SystemItem>DTINFO.TOC</SystemItem>
</Para>
<Para>
Attribute template:
<SystemItem>DTINFO.TOC CDATA #FIXED</SystemItem>
</Para>
<Para>
Related Forms:
<SystemItem>DTINFO.Scope</SystemItem>,
<SystemItem>DTINFO.Value</SystemItem>,
<SystemItem>DTINFO.ID</SystemItem>.
</Para>
<Para>
Example:
</Para>
<LiteralLayout>
&lt;!ELEMENT TOC - - ( Title, TitleAbbrev?, TOCfront*,
(TOCpart+ | TOCchap+), TOCback* ) &gt;
&lt;!ATTLIST TOC
Id ID #REQUIRED
%DTINFO.TOC; &ldquo;&num;CONTENT&rdquo;
%DTINFO.ID; &ldquo;attr( Id )&rdquo;--&gt;
&gt;
</LiteralLayout>
<Comment><SystemItem>DTINFO.TOCEntry</SystemItem></Comment>
<Para>
Apply <SystemItem>DTINFO.TOCEntry</SystemItem> to elements that indicate an entry in
a book&rsquo;s table of contents.</Para>
<Para>
Entity name: <SystemItem>DTINFO.TOCEntry</SystemItem>
</Para>
<Para>
Attribute template:
<SystemItem>DTINFO.TOCEntry CDATA #FIXED</SystemItem>
</Para>
<Para>Related Forms:
<SystemItem>DTINFO.Scope</SystemItem>,
<SystemItem>DTINFO.Value</SystemItem>,
<SystemItem>DTINFO.ID</SystemItem>.
</Para>
<Para>
Example:
</Para>
<LiteralLayout>
&lt;!ELEMENT TOCpart - - ( TOCentry+, TOCchap* ) &gt;
&lt;!ATTLIST TOCpart
Id ID #IMPLIED
%DTINFO.ID; &ldquo;attr( Id )&rdquo;
%DTINFO.TOCEntry; #CONTENT&rdquo;
&gt;
</LiteralLayout>
<Comment><SystemItem>DTINFO.TOCLevel</SystemItem></Comment>
<PARA>
Apply
<SystemItem>DTINFO.TOCLevel</SystemItem> to elements that indicate an entry
in a book&rsquo;s table of contents.</PARA>
<PARA>Entity name:
<SystemItem>DTINFO.TOCLevel</SystemItem></PARA>
<PARA>Attribute template:
<SystemItem>DTINFO.TOCLevel CDATA &num;FIXED
</SystemItem></PARA>
<PARA>Related Forms:
<SystemItem>DTINFO.Scope</SystemItem>,
<SystemItem>DTINFO.Value</SystemItem>,
<SystemItem>DTINFO.ID</SystemItem>.</PARA>
<PARA>Example:
</PARA>
<LITERALLAYOUT>
&lt;!ELEMENT TOCpart - - ( TOCentry+, TOCchap* ) &gt;
&lt;!ATTLIST TOCpart
Id ID #IMPLIED
%DTINFO.ID; &ldquo;attr( Id )&rdquo;
%DTINFO.TOCLevel;
&gt;
</LiteralLayout>
</ListItem>
</VarListEntry>
</VariableList>
</Chapter>