10.9 WML index

10.9.1 Example of creating an index

Suppose we need to create an alphabetic index from the FrameMaker markers of type Index, with each letter group separated by a large letter, and with the possibility to be able to point to the index node at will. We need:

This is achieved by the following excerpts of WML:

NODE IndexNode
{ 
  TITLE concatenate(maintitle()," - Index") 
  HEADER { ... } 
  FOOTER { 
            write(*,index(index,letter)); 
            ...  }

PARAGRAPH "INDEXChapter" TYPE Heading 
{  NEWNODE IndexNode 
   FILENAMEKEY index 
   LEVEL 1 
   ACTIONS { write(*,heading(1,text())); 
             write(*,hrule());  } 
}
The index may then be pointed to by the use of the function filename(node) by supplying the specified FILENAMEKEY as parameter, as shown below:.

...
write(*,button("[Index]",filename(index)));
... 

WebMaker User Guide - 27 SEP 1995

Generated with Harlequin WebMaker