title: xpst0003 xquery syntax error
body: <p>I want to query a <a href="http://query.yahooapis.com/v1/public/yql?q=select%20%2a%20from%20google.translate%20where%20q=%22Now%20I%20can%20do%20anything%22%20and%20target=%22hi%22;&amp;diagnostics=true&amp;env=store://datatables.org/alltableswithkeys" rel="nofollow">webpage</a> through following x query code. please help me.
  And it gives me following errors:
   XPST0003: XQuery syntax error in #...//json//sentences//trans); let#:
      expected "return", found ";".</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;config charset="UTF-8"&gt;
  &lt;var-def name="scrappedContent"&gt;
  &lt;xquery&gt;
  &lt;xq-param name="doc"&gt;
      &lt;html-to-xml outputtype="browser-compact" prunetags="yes"&gt;
        &lt;http url="${url}"/&gt;
      &lt;/html-to-xml&gt;
    &lt;/xq-param&gt;
  
    &lt;xq-expression&gt;&lt;![CDATA[
       declare variable $doc as node() external;
       let $transl := data($doc//query//results//json//sentences//trans);
       let $translitl := data($doc//query//results//json//sentences//translit);      
  
       let $data  := data($doc//div[@id="defId"])
       return
          &lt;myContent&gt;
            &lt;transl&gt;{$transl}&lt;/transl&gt;
            &lt;translitl&gt;{$translitl}&lt;/translitl&gt;
            &lt;data&gt;{$data}&lt;/data&gt;
          &lt;/myContent&gt;
     ]]&gt;
  &lt;/xq-expression&gt;
  &lt;/xquery&gt;
  &lt;/var-def&gt;   
  &lt;/config&gt;
  </code></pre>