<xsl:template match="LAMBDA" mode="noannot">
<xsl:variable name="id" select="@id"/>
<xsl:choose>
- <xsl:when test="@sort='Prop' and name(../..) != 'LAMBDA'">
+ <xsl:when test="//InnerTypes and @sort='Prop' and name(../..) != 'LAMBDA'">
<!-- <xsl:when test="@sort='Prop' and //InnerTypes/TYPE[@of=$id]"> -->
<xsl:call-template name="has_inner_type"/>
</xsl:when>
<xsl:choose>
<!-- <xsl:when test="//InnerTypes and key('typeid',@id)"> -->
<!-- <xsl:when test="//InnerTypes/TYPE[@of=$id]"> -->
- <xsl:when test="@sort='Prop'">
+ <xsl:when test="//InnerTypes and @sort='Prop'">
<xsl:call-template name="has_inner_type"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="noannot" select="."/>
</xsl:when>
<!--**** Fine Patch temporanea, per il problema dei threads ***-->
- <xsl:when test="count(*[@id = //InnerTypes/TYPE/@of]) = 1">
+ <xsl:when test="//InnerTypes and count(*[@sort='Prop' and (name(.)='LAMBDA' or name(.)='LETIN' or name(.)='APPLY' or name(.)='MUTCASE' or name(.)='FIX' or name(.)='COFIX')]) = 1">
<xsl:variable name="id" select="@id"/>
<m:apply helm:xref="{@id}">
<m:csymbol>thread</m:csymbol>