【问题标题】:XSTL Email displays full link on outlook.comXSTL 电子邮件在 outlook.com 上显示完整链接
【发布时间】:2020-05-20 08:17:07
【问题描述】:

应该在 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>

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

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

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

【问题讨论】:

    标签: xml email xslt outlook outlook.com


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-29
      • 1970-01-01
      相关资源
      最近更新 更多