title: XPATH 2.0 collection() with "?select=" (in eXist-db / XQuery)
body: <p>Using XPath 2.0 in eXist 4.4 and XQuery.</p>
  
  <p>I have a series of documents in eXist-db directory <code>/db/apps/deheresi/data</code> which I want to retrieve with <code>collection()</code>, but using a wildcard or predicate to filter specifically-named documents.</p>
  
  <p>For example, I'd like to get the documents that begin with <code>ABC</code> and end with <code>.xml</code>. I thought a wildcard like so <code>?select=ABC*.xml</code> would work, but it's not returning the expected results.</p>
  
  <pre><code>collection("/db/apps/deheresi/data?select=ABC*.xml")
  </code></pre>
  
  <p>I also tried to apply a combination of <code>starts-with</code> and <code>ends-with</code> but to no success. I am no doubt overlooking something simple here.</p>
  
  <p>Thanks in advance.</p>