With this xml structure :
<doc>
    <members>
    <member name="T:XXX">
    </member>
    <member name="F:YYY">
    </member>
    <member name="P:ZZZ">
    </member>
    <member name="T:XXX">
    </member>
</doc>
I try to get all nodes following node with name attribute starting with 'T:' until the next node with name attribute starting with 'T:'.
Based on this stackoverflow topic (#40767321), I found an almost perfect answer.
With the xsl:key below, it takes the first T: node and all of the followers but it also includes the next T: node in the select. How can I exlude it ?
<xsl:key name="subMembers" match="member" use="generate-id(preceding-sibling::*[contains(@name, 'T:')][1])" />
Thanks for your help !