<chapter><title>Index Term Tests</title>

<para>
Test data.</para>

<indexterm id="idx1"><primary>oft-repeated</primary></indexterm>
<indexterm id="idx2"><primary>chap-level</primary></indexterm>

<sect1><title>Index Term Sect 1</title>

<para>
Test data.</para>

<indexterm id="idx3"><primary>!</primary></indexterm>
<indexterm id=fred><primary>oft-repeated</primary><secondary>with id</secondary></indexterm>
<indexterm id="idx5" significance=preferred><primary>sect1-level</primary></indexterm>
<indexterm id="idx6"><primary>sect1-level</primary></indexterm>
<indexterm id="idx7"><primary>sect1-level</primary><secondary>sec</secondary></indexterm>
<indexterm id="idx8"><primary>sect1-other</primary><secondary>sec</secondary></indexterm>
<indexterm id="idx9"><primary>chap-level</primary><secondary>sec</secondary><tertiary>tert</tertiary></indexterm>
<indexterm scope=local><primary>chap-level</primary><secondary>sec</secondary><tertiary>tert</tertiary></indexterm>
<indexterm id="idx11"><primary>sect1-level</primary></indexterm>

<Sect2><title>Index Term Sect 2</title>

<para>
Test data.</para>

<indexterm id="idx12"><primary>[</primary></indexterm>
<indexterm id="idx13"><primary>oft-repeated</primary></indexterm>
<indexterm id="idx14"><primary sortas="abracadabra">sect2-level</primary></indexterm>
<indexterm id="idx15"><primary>chap-level</primary><secondary>sec</secondary><tertiary>tert</tertiary></indexterm>
</sect2>
<Sect2><title>Index Term Sect 3</title>
<para>foo</para>
</sect2>

</sect1>
</chapter>
