+ <!-- Missing module reference -->
+ <xsl:choose>
+ <!-- within another directive synopsis -->
+ <xsl:when test="normalize-space(.) != ancestor::directivesynopsis/name">
+ <xsl:message>link to '<xsl:value-of select="."/>' directive could be added in directive '<xsl:value-of select="ancestor::directivesynopsis/name"/>'</xsl:message>
+ </xsl:when>
+ <!-- somewhere else (try to find module name to give a hint) -->
+ <xsl:when test="not(ancestor::directivesynopsis/name)">
+ <xsl:message>link to '<xsl:value-of select="."/>' directive could be added in MODULE '<xsl:value-of select="/modulesynopsis/name"/>'</xsl:message>
+ </xsl:when>
+ </xsl:choose>