[% IF message;
PROCESS message_block.tmpl;
END;
IF xref_arr;
IF index;
PROCESS index.tmpl;
END;
IF n_pages && n_pages > 1;
PROCESS paging.tmpl;
END;
FOREACH xref = xref_arr;
PROCESS xref_template.tmpl;
END;
IF n_pages && n_pages > 1;
PROCESS paging.tmpl;
END;
END %]