- <xsl:if test="@id">
- <xsl:attribute name="xref">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:value-of select="@val"/>
- </m:mtext>
+ <xsl:if test="@id">
+ <xsl:attribute name="xref">
+ <xsl:value-of select="@id"/>
+ </xsl:attribute>
+ </xsl:if>
+ I
+ </m:mtext>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="tml:cursor">
+ <xsl:param name="annotation" select="/.."/>
+ <xsl:choose>
+ <xsl:when test="$annotation">
+ <m:msub>
+ <xsl:call-template name="cursor"/>
+ <m:mtext>
+ <xsl:value-of select="$annotation"/>
+ </m:mtext>
+ </m:msub>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="cursor"/>