Appending to an Existing Table of Contents

In the previous example, we created an HTML file in two steps. That example created only a body file. It is also possible to create a Web page with a table of contents using the same technique. There are just a couple of modifications to add to the previous program. First, we need to add specifications for a CONTENTS file and a FRAME file to the ODS HTML statements.

The FRAME= specification includes the ANCHOR= option. Since the body file is being created in two steps, a different starting value for the anchor tags in each run is required, or two "IDX" anchors will end up in the results. The following example code uses "FIRSTRUN" as the starting value for the anchor tags in the top part of the results. ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.