XQuery

XQuery

(pwalmsley@datypic.com)

ISBN: 1491915103

2nd edition, , O'Reilly Media, Inc.

Chapter 25: Implementation-Specific Features

Please note that the book contains many inline examples and informal tables that are not provided here.

Example 25-1. Option declarations
declare namespace saxon="http://saxon.sf.net/";
declare option saxon:output "saxon:indent-spaces=5";
Example 25-2. Multiple annotations with multiple values
xquery version "3.0";
declare namespace test="http://exist-db.org/xquery/xqsuite";
declare
  %test:args("Hello", "world")
  %test:assertEquals("Hello world")
  function local:hello($greet as xs:string, $user as xs:string) {
    $greet || " " || $user
  };
Datypic XQuery Services