禁用输出转义=“是-否”不工作&; Sharepoint URL 中输出两次
我有一个自定义内容类型,其中包含 TEXT 类型的自定义字段。 该字段包含以协议 DynamicsNav: 开头的 URL,因此 sharepoint 不允许将此字段作为标准“安全”超链接字段进行管理。 该字段通过 XSL 模板呈现并由固定文本表示。
<xsl:template match="FieldRef[@Name='DSErpHyperlink']" mode="Text_body">
<xsl:param name="thisNode" select="."/>
<a>
<xsl:attribute name="href">
<xsl:value-of select="$thisNode/@DSErpHyperlink" disable-output-escaping="yes" />
</xsl:attribute>
Open
</a>
字段DSErpHyperlink包含
dynamicsnav://servername:7041/ServiceName/CRONUS Italia S.p.A./runpage?page=30&bookmark=224;GwAAAACJBDEwMDE=&mode=Create
但是是用双amp渲染的;所以不起作用。
<a href="dynamicsnav://servername:7041/ServiceName/CRONUS Italia S.p.A./runpage?page=30&amp;bookmark=224;GwAAAACJBDEwMDE=**&amp;**mode=Create"> Open</a>
有人可以帮助我吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是一种简单的方法,不需要使用 DOE:
当此转换应用于以下 XML 文档时:
想要的正确结果产生:
Here is a simple way to do this, that doesn't require using DOE:
when this transformation is applied on the following XML document:
the wanted, correct result is produced :
规范规定,在写入属性节点时,禁用输出转义被忽略。正如 Dimitre 所说,你不需要它。
The specification states that disable-output-escaping is ignored when writing an attribute node. As Dimitre says, you don't need it.
解决了!
这有效
相反,这不起作用
因为我认为禁用输出转义不适用于属性
SOLVED !
This works
Instead of this that doesn't work
Because disable-output-escaping is not working for attributes I think