This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"; | |
(: | |
Tries to mimic http://www.w3.org/TR/xpath-functions-30/#func-nilled | |
If $arg is the empty sequence, the function returns the empty sequence. | |
:) | |
declare function local:nilled($arg as node()?) as xs:boolean? { | |
if(empty($arg)) then () | |
else ( | |
not($arg/(text()|node())) and $arg/@xsi:nil eq "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" First step to make VIM an XQuery IDE using BaseX | |
" | |
" Adds possibility to run the currently edited XQuery file | |
" using key combination <leader>r | |
" An error output jumps to the file, line and column | |
" where the error occured. | |
" | |
" associate *.bxs with xml filetype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let $authors := | |
<authors> | |
<author id="a"><name>Foo</name>…whatever…</author> | |
<author id="b"><name>Foo</name>…whatever…</author> | |
<author id="a"><name>Foo</name>…whatever…</author> | |
<author id="c"><name>Bar</name>…whatever…</author> | |
<author id="d"><name>Bar</name>…whatever…</author> | |
<author id="f"><name>FooBar</name>…whatever…</author> | |
</authors> | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Michael-Seiferles-MacBook-Pro:~ michael$ java KeyTest | |
Pressed: java.awt.event.KeyEvent[KEY_PRESSED,keyCode=157,keyText=?,keyChar=Undefined keyChar,modifiers=?,extModifiers=?,keyLocation=KEY_LOCATION_LEFT,rawCode=0,primaryLevelUnicode=0,scancode=0] on frame0 | |
Pressed: java.awt.event.KeyEvent[KEY_PRESSED,keyCode=65,keyText=A,keyChar='a',modifiers=?,extModifiers=?,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on frame0 | |
Typed: java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='a',modifiers=?,extModifiers=?,keyLocation=KEY_LOCATION_UNKNOWN,rawCode=0,primaryLevelUnicode=0,scancode=0] on frame0 | |
97 | |
Pressed: java.awt.event.KeyEvent[KEY_PRESSED,keyCode=67,keyText=C,keyChar='c',modifiers=?,extModifiers=?,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on frame0 | |
Typed: java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='c',modifiers=?,extModifiers=?,keyLocation=KEY_LOCATION_UNKNOWN,rawCode=0,primaryLe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Author: <xxxx>@uni-konstanz.de | |
* Version: 20080915 | |
*/ | |
class LDAP { | |
var $authed = false; | |
/** | |
* Auth a username and a password against the ldap service | |
* @param object $username [optional] |