首页 > 解决方案 > XSTL 电子邮件在 outlook.com 上显示完整链接

问题描述

应该在 IMG 后面的链接显示为 [www.somewebsite.com] 它带有括号作为功能链接。

只有在 Outlook 应用程序本身的 outlook.com 中,它才能像在 gmail.com 中一样正常工作

我目前已更改为此解决方案以传递 IMG

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xhtml" version="4.0" encoding="utf-8" indent="yes"/>

    <xsl:element name="a">
      <xsl:attribute name="href">
        <xsl:value-of select="DynamicLink"/>
      </xsl:attribute>
      <xsl:value-of select="DynamicLink"/>\
      <img src="someimg.jpg"/>
      <p> Some text </p>
    </xsl:element>

</xsl:stylesheet>

我已经尝试过<a href="{myUrl}"><xsl:value-of select="DynamicLink"/></a>,但那个在 Outlook 应用程序和 Outlook.com 中都被破坏了

硬编码<a href="">可以正常工作,但由于 DynamicLink 包含需要在站点上解析的 JSON 数据,因此它删除了功能。以前的解决方案使用 xml 节点交换,所以我在另一个节点内部有一个节点,我会交换那些在 Outlook 和 gmail 中工作但在 outlook.com 中中断的节点

以前有没有人遇到过这个问题,或者有没有办法在 outlook.com 的情况下选择退出硬编码链接。

标签: xmlemailxsltoutlookoutlook.com

解决方案


似乎整个问题可能只是链接需要包含在href中"https://"


推荐阅读