<index id=index>
<para>This is a test index.</para>

<formalpara><title>a formal para</title>
<para>
this is a formal paragraph.</para>
</formalpara>

<INDEXENTRY>
<PRIMARYIE>Primary</PRIMARYIE>
<SECONDARYIE>Secondary 1</SECONDARYIE>
<TERTIARYIE>Tertiary 11</TERTIARYIE>
<TERTIARYIE>Tertiary 12</TERTIARYIE>
<SECONDARYIE>Secondary 2</SECONDARYIE>
<TERTIARYIE>Tertiary 21</TERTIARYIE>
</INDEXENTRY>

<indexentry id=prim1><primaryie>primary</primaryie>
</indexentry>

<indexentry id=prim2><primaryie>primary</primaryie>
</indexentry>

<indexentry><primaryie>primary</primaryie>
            <secondaryie>secondary</secondaryie>
</indexentry>

<indexentry><primaryie>primary</primaryie>
            <secondaryie>secondary</secondaryie>
</indexentry>

<indexentry><primaryie>primary</primaryie>
            <secondaryie>secondary</secondaryie>
            <tertiaryie>tertiary1</tertiaryie>
</indexentry>

<indexentry><primaryie>primary</primaryie>
            <secondaryie>secondary</secondaryie>
            <tertiaryie>tertiary2</tertiaryie>
</indexentry>

<indexentry><primaryie>primary</primaryie>
            <secondaryie>secondary2</secondaryie>
            <tertiaryie>tertiary3</tertiaryie>
</indexentry>

<indexentry><primaryie>primary</primaryie>
            <seeie linkend=prim2>see ie</seeie>
</indexentry>

<indexentry><primaryie>primary</primaryie>
            <secondaryie>secondary2</secondaryie>
            <tertiaryie>tertiary3</tertiaryie>
            <seealsoie linkends="prim2 prim1">seealso ie</seealsoie>
</indexentry>
</index>
