<< Index

This page executes a simple query in XQuery

Page | Source
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>   
    <title>XQIB: Sample page</title>
    <meta charset="UTF-8"/>
    <script type="text/javascript" src="mxqueryjs/mxqueryjs.nocache.js"></script>
    <script type="application/xquery">
      b:alert(
        let $x := <a><b>2</b><c>4</c></a>
        return xs:string($x/b * $x/c)
      )
    </script>
  </head>
  <body>
    <h1>This page executes a simple query in XQuery</h1>
  </body>
</html>