<xsl:template match = "*" mode="semantics">
<xsl:copy>
<xsl:copy-of select="@*"/>
- <xsl:if test="@m:xref">
- <xsl:variable name="cnode" select="key('id',@m:xref)"/>
+ <xsl:if test="@xref">
+ <xsl:variable name="cnode" select="key('id',@xref)"/>
<xsl:if test="$cnode/@definitionURL">
<xsl:attribute name="xlink:href">
<xsl:call-template name="makeURL"><xsl:with-param name="uri" select="$cnode/@definitionURL"/></xsl:call-template>
</xsl:attribute>
<xsl:attribute name="target">theory</xsl:attribute>
</xsl:when>
+ <xsl:when test="starts-with(@href,"#")">
+ <xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
+ <xsl:if test="@target">
+ <xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute>
+ </xsl:if>
+ </xsl:when>
<xsl:otherwise>
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
-