I want to get generate-id(.)all text nodes after node <m/>and before node </n>. I am looking for some general XSL and am not tightly coupled with the sample input template mentioned below. For any input pattern, I want to get the identifiers of all text nodes between node <m/>and <n/>.
Input example for a better understanding:
<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>
Expected Result: Create an identifier for text nodes with the values "third text node", "Another text node", "This is my fourth text node", "This is my fifth", which lies between the nodes <m/>and<n/>
Please give your ideas.