               <xsl:value-of select="count($etargets)"/>               <xsl:text>Endterm points to nonexistent ID: </xsl:text>               <xsl:value-of select="@endterm"/>             </xsl:message>             <xsl:text>???</xsl:text>           </xsl:when>           <xsl:otherwise>             <xsl:apply-templates select="$etarget" mode="endterm"/>           </xsl:otherwise>         </xsl:choose>       </fo:basic-link>     </xsl:when>      <xsl: