Forum How do I...?

create an index

mong
Hallo,

ist it possible to create an index with prince? A toc is easy but I need
an index for some documents.

Mong
mikeday
Creating an index requires adding markup to your index terms, such as wrapping them in span elements with a class of "indexterm" or something like that. You then need to scan the document to find these elements, using a Perl script, XSLT transform, or whatever way you like to process XML/HTML documents, and create an index at the end of the document that links to each one. You can then use CSS to style the link as cross-references with page numbers.

In future we may be able to provide a purely CSS-based solution to index generation, but for now an additional transform or script is still required.