Changes

Jump to navigation Jump to search
370 bytes added ,  02:19, 21 July 2016
=Suffixes=
In BaseX, files with the suffixes {{Code|.xq}}, {{Code|.xqm}}, {{Code|.xqy}}, {{Code|.xql}}, {{Code|.xqu}} and {{Code|.xquery}} are treated as XQuery files. By defaultIn XQuery, there are main and library modules: * Main modules always have a body expression: <pre class="brush:xquery">'Hello World!'</pre> * Library modules start with a module namespace declaration and have no body expression: <pre class="brush:xquery">module namespace hello = 'http://basex.org/examples/hello'; declare function hello:world() { 'Hello World!'};</pre> We recommend {{Code|.xq}} is used and recommended as suffix for for main modules, and {{Code|.xqm}} for library modules. However, but the actual module type will dynamically be dynamically detected if the when a file is opened and parsed.
=Option Declarations=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu