Xpath to extract from following siblings until the next specified node
<p>I'm trying to extract everything from the <code>p</code> nodes that follow the <code>h2</code> containing <code>&quot;Summary&quot;</code> until I get to the next <code>h2</code>.</p>
<p>This is what I have so far:</p>
<p><code>.//h2[contains(text(),'Summary')]/following-sibling::*</code></p>
<p>I just don't know how to get it to stop. Is this even possible?</p>
<p><a href="https://i.stack.imgur.com/lFEzR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lFEzR.png" alt="html" /></a></p>