The HTML extension (.htx) file is an HTML file containing variables that refer to data in a query results set. The following example defines a page header that displays the query restriction and the documents displayed on the page that the user sees. This file is written to work with the variables in the sample .idq file shown in Sample .Idq File.
<H4> <%if CiMatchedRecordCount eq 0%> No documents matched the query "<%EscapeHTMLCiRestriction%>".</H4> <%else%> <H4>Documents <%CiFirstRecordNumber%> to <%CiLastRecordNumber%> of <%if CiMatchedRecordCount eq CiMaxRecordsInResultSet%> the first <%endif%> <%CiMatchedRecordCount%> matching the query "<%EscapeHTMLCiRestriction%>". <%endif%> </H4>
The text in the sample .htx file produces the following:
Documents 1 to 10 of the first 150 matching the query "cache".
This example shows that the .htx file is a template that formats how results are returned and displayed to the user. The file is written in HTML format with some extensions supplied by IIS and Index Server. These extensions include variable names and other codes for processing results. For details about the .htx file and how to format it, see HTML Extension Files.