在 xslt 中禁用输出转义的相反方法 [英] opposite method to disable output escaping in xslt

查看:18
本文介绍了在 xslt 中禁用输出转义的相反方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
XSLT:如何将 XML 节点转换为字符串

输入:

<text> aabbabab  </text>

输出:

&lt;text&gt; aabbabab &lt;/text&gt;

这与禁用输出转义相反.

This is the opposite to Disable output escaping.

我们如何在 xslt 中实现这一点.

How can we achieve this in xslt.

有人可以帮忙吗.

谢谢

推荐答案

这个答案.

See this answer.

总而言之,最短的解决方案使用一个微小的扩展函数.

In summary, the shortest solution uses a tiny extension function.

这篇关于在 xslt 中禁用输出转义的相反方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆