我想在 node 之后和 node 之前获取generate-id(.)
所有文本节点的。我正在寻找一些通用的 XSL,而不是与下面提到的示例输入模式紧密耦合。对于任何输入模式,我想获取 node和.<m/>
</n>
<m/>
<n/>
示例输入以便更好地理解:
<a>
<b>
<c>
This is first text node
</c>
</b>
<d>
<e>
This is my second text node
</e>
<f>
This is my <m/>third text node
</f>
<g>
One more text node
</g>
<h>
<i>
This is my fourth text node
</i>
</h>
<j>
This is my fifth <n/>text node
</j>
<k>
<l>
This is my sixth text node
</l>
</k>
</d>
</a>
预期输出:生成文本节点的 ID,其值为“第三个文本节点”、“另一个文本节点”、“这是我的第四个文本节点”、“这是我的第五个”,它们位于节点<m/>
和<n/>
请给出你的想法。