You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在XSLT中从父节点忽略所有script和style标签

解决方法

你的问题出在XPath条件里的not(descendant::style) and not(descendant::script)——这直接排除了所有包含<style>或<script>标签的父节点,导致那个带<style>的<p>整个被跳过,自然丢失了里面的sub text。

要实现保留父节点但忽略其中的

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.11 06:01:00