<xsl:if test="@id">
<xsl:attribute name="m:xref"><xsl:value-of select="@id"/></xsl:attribute>
</xsl:if>
+ <xsl:variable name="id" select="m:csymbol/@id"/>
<xsl:choose>
<!-- FORALL -->
<xsl:when test="$name='forall'">
<!-- PROOF -->
<xsl:when test="$name='proof'">
<m:maction actiontype="toggle">
- <!-- CSC: next if until the annotationHelper can handle mactions -->
- <xsl:if test="not($explodeall)">
+ <!-- CSC: $explodeall until the annotationHelper can handle mactions -->
+ <xsl:variable name="test" select="(not($explodeall)) and
+ (not(preceding-sibling::*[1]/text()='letin1')) and
+ (not(preceding-sibling::*[1]/text()='rw_step')) and
+ (not(name(..)='m:lambda'))"/>
+ <xsl:if test="$test">
<!-- Details hided (default) -->
<m:mtable align="baseline 1" equalrows="false" columnalign="left">
<m:mtr>
<m:mphantom>
<m:mtext>_</m:mtext>
</m:mphantom>
- <m:mtext mathcolor="Green">(hide details)</m:mtext>
+ <xsl:if test="$test">
+ <m:mtext mathcolor="Green">(hide details)</m:mtext>
+ </xsl:if>
</m:mrow>
</m:mrow>
</m:mtd>
<xsl:template match="m:lambda">
<xsl:variable name="charlength"><xsl:apply-templates select="*[position()=1]" mode="charcount"/></xsl:variable>
- <m:mrow m:xref="{@id}">
+ <m:mrow>
+ <xsl:if test="@id">
+ <xsl:attribute name="m:xref">
+ <xsl:value-of select="@id"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:choose>
<xsl:when test="$charlength >= $framewidth">
<m:mtable align="baseline 1" equalrows="false" columnalign="left">