Changes

Jump to navigation Jump to search
125 bytes added ,  18:07, 28 March 2012
* {{Mono|input}} is an instance of [https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/util/InputInfo.java InputInfo]. It contains line/column and the original query and is mainly used for providing better error messages.
The following query calls two contextContext-aware classes represent a powerful interface for writing Java methods:modules that are more closely coupled with the BaseX core library.
The following XQuery code calls two context-aware Java methods: <pre class="brush:javaxquery">
import module namespace context = 'java:org.basex.examples.query.ContextModule';
<pre class="brush:xquery">
<context>{
context:function-namespace()
</pre>
The called context-aware Java method class is shown below:
<pre class="brush:java">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu