我有以下 XSL 渲染到我的 HTML 中:
<xsl:for-each select="user">
<xsl:variable name="exampleurl">
<xsl:choose>
<xsl:when test="objecttype='2'">
Check this out:
<strong><a class="link" href="http://www.example.com/beinspired">Inspiration</a></strong>.
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="$exampleurl" />
</xsl:for-each>
但是,当我打印变量 $exampleurl 时,只有文本“检查一下:灵感”。被打印。但是“灵感”这个词并不是我想要的可点击的 URL。
如何解决这个问题?