开发者

How to write <a href="mailto: tag in xslt?

开发者 https://www.devze.com 2022-12-31 05:48 出处:网络
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.

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.

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>

wh开发者_JAVA百科ere Email is retrived from an XML. I need to provide xpath but it is thorwing error.

Thanks in advance...


<a href="mailto:{//Email}">
  <xsl:value-of select="//Email"/>
</a>
0

精彩评论

暂无评论...
验证码 换一张
取 消