Xquery example in html

Can anyone provide an example of an html page using xquery, you need something else to run xquery.

I tried to run some xquery code from w3schools, but it is not evaluated on the html page.

<html>
  <ul>
  {
    for $x in doc("books.xml")/bookstore/book/title
      order by $x
      return <li>{$x}</li>
    }
  </ul>
</html>
+3
source share
5 answers

Umm ... This is probably a misunderstanding.

Neither javascript itself nor any webbrowser (IE, FF, Opera, ...) can use XQuery or have support. You need other software that is implemented by XQuery (check out the link provided by Jonathan Sampson). This software can be called from your html site, and the results are displayed in a line

. wikibook XQuery eXist .

+5
+1

, XQuery. , , Firefox, , : XQuery USE ME

,

+1
0

Source: https://habr.com/ru/post/1711438/


All Articles