我有一个带有子元素的XML节点,我需要将其分解为两个 像这样
<node margin="5pt" color="red">with some text and <seperator/> where the element continues</node>
结果应该是
<node margin="5pt" color="red">with some text and </node>
<node margin="5pt" color="red">where the element continues</node>
答案 0 :(得分:0)
以下XSLT 1.0样式表将拆分内容,并生成与node
元素(即{{3} })
text()