xslt超链接,分隔url和descption

rak*_*los 2 xslt sharepoint

我在sharepoint中有一个带有超链接列的列表.

我将此列表放入xml并将xslt应用于它.

xml以下列形式生成输出:

<link>http://www.foo.com, http://www.foo.com</link>
Run Code Online (Sandbox Code Playgroud)

如何使用xslt显示此链接?

谢谢

Mar*_*ell 6

怎么样:

<xsl:template match="link">
  <a href="{substring-before(.,',')}">
    <xsl:value-of select="substring-after(.,',')"/>
  </a>
</xsl:template>
Run Code Online (Sandbox Code Playgroud)