- if (!tl->index_name)
- {
- /* this is the ! case, so structure is for the xpath index */
- wrd_tl.index_name = xpath_index;
- if (p->flagShowRecords)
- {
- int i;
- printf("%*sXPath index", (level + 1) * 4, "");
- printf (" XData:\"");
- for (i = 0; i<wrd_tl.term_len && i < 40; i++)
- fputc (wrd_tl.term_buf[i], stdout);
- fputc ('"', stdout);
- if (wrd_tl.term_len > 40)
- printf (" ...");
- fputc ('\n', stdout);
- }
- else
- (*p->tokenAdd)(&wrd_tl);
- xpdone = 1;
- } else {
- /* this is just the old fashioned attribute based index */
- wrd_tl.index_name = tl->index_name;
- if (p->flagShowRecords)
- {
- int i;
- printf("%*sIdx: [%s]", (level + 1) * 4, "",
- tl->structure);
- printf("%s %s", tl->index_name, tl->source);
- printf (" XData:\"");
- for (i = 0; i<wrd_tl.term_len && i < 40; i++)
- fputc (wrd_tl.term_buf[i], stdout);
- fputc ('"', stdout);
- if (wrd_tl.term_len > 40)
- printf (" ...");
- fputc ('\n', stdout);
- }
- else
- (*p->tokenAdd)(&wrd_tl);
- }
+
+ /* this is just the old fashioned attribute based index */
+ wrd_tl.index_name = tl->index_name;
+ if (p->flagShowRecords)
+ {
+ int i;
+ printf("%*sIdx: [%s]", (level + 1) * 4, "",
+ tl->structure);
+ printf("%s %s", tl->index_name, tl->source);
+ printf(" XData:\"");
+ for (i = 0; i<wrd_tl.term_len && i < 40; i++)
+ fputc(wrd_tl.term_buf[i], stdout);
+ fputc('"', stdout);
+ if (wrd_tl.term_len > 40)
+ printf(" ...");
+ fputc('\n', stdout);
+ }
+ else
+ {
+ (*p->tokenAdd)(&wrd_tl);
+ }
+ if (wrd_tl.seqno > max_seqno)
+ max_seqno = wrd_tl.seqno;