Changes

Jump to navigation Jump to search
50 bytes removed ,  19:29, 29 October 2013
import module namespace context = 'org.basex.examples.query.ContextModule';
<context>element user { context:function-namespaceuser()}</context>,<element to-int>{
try { context:to-int('abc') }
catch * { 'Error in line', $err:line-number }
}</to-int>
</pre>
public class ContextModule extends QueryModule {
/**
* Returns the default function namespacename of the logged in user. * @return default function namespaceuser
*/
@Requires(Permission.NONE)
@Deterministic
@ContextDependent
public Str functionNamespaceString user() { return StrqueryContext.get(context.scuser.nsFunc)name;
}
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu