Select all of an element between the current element and the next of the current element
问题 Using XSLT 1.0 (preferably), How can I select all of an element which occurs between the current element and the next time the current element occurs? Say I have this XML (edited): <root> <heading_1>Section 1</heading_1> <para>...</para> <list_1>...</list_1> <heading_2>Section 1.1</heading_2> <para>...</para> <heading_3>Section 1.1.1</heading_3> <para>...</para> <list_1>...</list_1> <heading_2>Section 1.2</heading_2> <para>...</para> <footnote>...</footnote> <heading_1>Section 2</heading_1>