如何在 xslt 中编写 <a href="mailto: 标签? [英] How to write <a href="mailto: tag in xslt?
本文介绍了如何在 xslt 中编写 <a href="mailto: 标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 xsl 创建 HTML o/p.其中一项要求是显示用户的邮件 ID,单击时...将打开 Outlook 的新页面.
I am creating HTML o/p using xsl. one of the requirement is to display user's mail id and when clicked... it will open a new page of Outlook.
我知道标签但如何在 xslt 中编写 HTML 标签?
I know tag but How to write HTML tag in xslt ?
<a href="mailto:<xsl:value-of select="//Email/>">
<xsl:value-of select ="//Email"/>
</a>
从 XML 中检索电子邮件的地方.我需要提供 xpath 但它是 thorwing 错误.
where Email is retrived from an XML. I need to provide xpath but it is thorwing error.
提前致谢...
推荐答案
<a href="mailto:{//Email}">
<xsl:value-of select="//Email"/>
</a>
这篇关于如何在 xslt 中编写 <a href="mailto: 标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文