我正在尝试使用xsl:for-each在XSLT 2.0中对元素进行分组 .
以下是我输入的说明:
heading text
title1111
2222
3333
another title4444
5555
heading text
another title6666
7777
another title8888
9999
我试图通过匹配每个
元素并将每个后续元素分组直到下一个 成为元素 来对该文档进行分组 . 这是我希望我的输出看起来像:Heading text
title1111
2222
3333
title4444
5555
title6666
7777
8888
9999
我当前的模板不起作用:
上面的样式表确实对我想要的部分进行分组,但是由于某种原因它也将每个 元素分组到它自己的 中 . 有什么建议?
提前致谢 .