</xsl:template>
<xsl:template match="instantiate" mode="pure">
- <m:apply helm:xref="{@id}">
+ <m:apply>
+ <xsl:if test="@id">
+ <xsl:attribute name="helm:xref" select="@id"/>
+ </xsl:if>
<m:csymbol>inst</m:csymbol>
<xsl:apply-templates mode="noannot" select="*[1]" />
<xsl:for-each select="arg">
<!-- INST -->
<xsl:when test="$name='inst'">
<m:mrow>
- <xsl:if test="@definitionURL">
- <xsl:attribute name="helm:xref" value="{@helm:xref}"/>
+ <xsl:if test="$id != ''">
+ <xsl:attribute name="xref"><xsl:value-of select="$id"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates select="*[2]"/>
<m:mo stretchy="false">{</m:mo>
<xsl:for-each select="*[(position()>2) and (position() mod 2 = 1)]">
- <xsl:if test="name()='m:ci'">
- <a href="{@definitionURL}">
- <xsl:apply-templates/>
- </a>
- </xsl:if>
+ <xsl:apply-templates/>
<m:mo stretchy="false">:=</m:mo>
<xsl:apply-templates select="following-sibling::*[position() = 1]"/>
</xsl:for-each>