</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">