【发布时间】:2017-02-06 15:02:34
【问题描述】:
我有一个这样的xml,
<doc>
<p>text1 <xml version="1.0" encoding="UTF-16"
standalone="yes"?> text2</p>
</doc>
我需要使用 XSLT 删除文本上方 &lt; and &gt; 表单之间的文本内容。所以预期的输出是,
<doc>
<p>text1 text2</p>
</doc>
我尝试使用正则表达式,但我想知道如何在&lt; and &gt; 形式正则表达式之间捕获文本。
知道如何使用 XSLT 做到这一点吗?
【问题讨论】: