- <a href="{$uri}">
- <xsl:call-template name="mksymbol">
- <xsl:with-param name="symbol">
- <xsl:value-of select="local-name(*[1])"/>
- </xsl:with-param>
- </xsl:call-template>
- </a>
+ <xsl:choose>
+ <xsl:when test="$uri != ''">
+ <a href="{$uri}">
+ <xsl:call-template name="mksymbol">
+ <xsl:with-param name="symbol">
+ <xsl:value-of select="local-name(*[1])"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="mksymbol">
+ <xsl:with-param name="symbol">
+ <xsl:value-of select="local-name(*[1])"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>