title: Can someone explain how the external variable works in XQuery?
body: <p>I see an XML node when I log $variable, but I'm not sure how $variable received the node and assume it has something to do with external.</p>
  
  <pre><code>declare variable $variable as element() external;
  </code></pre>