【发布时间】:2016-07-28 17:24:56
【问题描述】:
假设我有一个包含如下段落块的文档:
<p>
One morning, when Gregor Samsa woke from troubled dreams, he found himself
transformed in his bed into a horrible vermin. He lay on his armour-like
back, and if he lifted his head a little he could see his brown belly,
slightly domed and divided by arches into stiff sections. The bedding was
hardly able to cover it and seemed ready to slide off any moment.
<span style="background-color:rgb(255, 255, 255); color:rgb(102, 102, 102)">
<span next="added-diff-1" changeId="added-diff-0" previous="first-diff" id="added-diff-0" class="diff-html-added">
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.
</span>
</span>
His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked.
</p>
是否可以使用 XSLT 读取 p 元素但排除 span 标签和嵌套在段落内的 span 标签之间的内容?我该怎么做?
【问题讨论】: