title: XQuery/XPath uses sql parameter?
body: <p>I am try to implement the following code.</p>
  
  <pre><code>declare @para varchar(10) = 'b';
  declare @x xml = '
  &lt;x&gt;
      &lt;a&gt;1111&lt;/a&gt;
      &lt;b&gt;2222&lt;/b&gt;
      &lt;c&gt;3333&lt;/c&gt;
  &lt;/x&gt;';
  select @x.query('/x/sql:variable("@para")');
  </code></pre>
  
  <p>The above code should get the node of <code>&lt;b&gt;2222&lt;/b&gt;</code>. However, it get the following error</p>
  
  <pre>
  Msg 9335, Level 16, State 1, Line 8
  XQuery [query()]: The XQuery syntax '/function()' is not supported.
  </pre>