<< Index

Module import

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">
      import module namespace
        m = "http://www.xqib.org/module"
        at "http://www.xqib.org/js/module.xquery";

      b:alert(m:sayHello("Browser"))
    </script>
  </head>
  <body>
    <h1>Module import</h1>
  </body>
</html>