<xsl:otherwise>
<xsl:choose>
<xsl:when test="child::text() and not(*[1])">
- <m:mn m:xref="{$id}"> <xsl:apply-templates mode = "semantics"/> </m:mn>
+ <m:mn m:xref="{@id}"> <xsl:apply-templates mode = "semantics"/> </m:mn>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="id" select="@id"/>