The table of contents (TOC) file describes for the TOC navigator the content and layout of the TOC. The format of the TOC file is based on the World Wide Web Consortium (W3C) Extended Markup Language (XML). Following is a very small example of a TOC file:
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE toc
PUBLIC
"-//Sun Microsystems Inc.//DTD
JavaHelp TOC Version 2.0//EN"
"http://java.sun.com/products/javahelp/toc_2_0.dtd">
<toc version="2.0">
<tocitem image="toplevelfolder"
text="Java Development Environment">
<tocitem target="jde.intro">Introduction to JDE Online Help />
<tocitem text="IDE Tutorial" target="tut.starttoc">
<tocitem text="Introducing JDE" target="tut.intro" />
<tocitem text="Tutorial One" target="tut.quickstart" / >
<tocitem text="Tutorial Two" target="tut.edit" />
<tocitem text="Tutorial Three" target="tut.errors" />
</tocitem>
<tocitem text="Beans in JDE" target="bean.jbeanstory" />
<tocitem text="Tips on Using Beans Effectively"
target="bean.beantips"
mergetype="javax.help.SortMerge
"
presentationtype="javax.help.SecondaryWindow
presentationname="mainsw" />
</tocitem>
</toc>
This example produces the following TOC display:
The following table describes the TOC tags:
<toc> |
Defines the TOC. This tag contains <tocitem>
tags and the following optional attributes.
|
||||||||||||||||
<tocitem> |
Defines a TOC entry. Nesting entry1 in entry2
defines entry2 to be hierarchically contained within entry1.
Uses the following attributes:
|
See also: