<xsl:key name="id" use="@id" match="m:*"/>
+<xsl:param name="URLs_or_URIs" select="'URLs'"/>
+
<xsl:template match = "m:semantics">
<xsl:apply-templates select="*[1]" mode="semantics"/>
</xsl:template>
<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:choose>
+ <xsl:when test="$URLs_or_URIs = 'URLs'">
+ <xsl:call-template name="makeURL"><xsl:with-param name="uri" select="$cnode/@definitionURL"/></xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$cnode/@definitionURL"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:attribute>
<!-- xlink:show='other' requires the exact modality to be -->
<!-- specified in non-xlink markup. The point is that the -->