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:
FILENAMEKEY for the HTML file of the index.
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)));
...