title: Example of xquery in html
body: <p>Can someone give an example of an html page that uses xquery, do you need something else in order to run xquery.</p>
  
  <p>I tried to run some xquery code from w3schools but it is not evaluating in the html page.</p>
  
  <pre><code>&lt;html&gt;
    &lt;ul&gt;
    {
      for $x in doc("books.xml")/bookstore/book/title
        order by $x
        return &lt;li&gt;{$x}&lt;/li&gt;
      }
    &lt;/ul&gt;
  &lt;/html&gt;
  </code></pre>