This file contains hidden or 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
1. Install Exuberant Ctags | |
2. Create ~/.ctags with the following content to (rudimentary) support XQuery for ctags: | |
--langdef=xquery | |
--langmap=xquery:.xq.xqm.xqy | |
--regex-xquery=/^[ \t]*declare?[ \t]*(%[^%])*[ \t]*function[ \n\t]*([_a-zA-Z0-9:-]*:)?([_a-zA-Z0-9-]+)/\3/f,function/ | |
--regex-xquery=/^[ \t]*declare[ \t]*variable[ \t]*\$([_a-zA-Z0-9:-]*:)?([_a-zA-Z0-9-]+)/\2/v,variable/ | |
--regex-xquery=/^module namespace[ \t]*(\w+)[ \t]*=.*/\1/m,module/ | |
3. Install the Tlist vim plugin: vim-taglist.sourceforge.net |
This file contains hidden or 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
#!/bin/bash | |
PA=$HOME/BaseX/latest | |
URL="http://files.basex.org/releases/latest/" | |
rm -rf $PA | |
mkdir $PA | |
# Get all file paths | |
FILES=`basex -q "distinct-values(http:send-request(<http:request method='get' href='$URL'/>)//div[@id='files']//table/tr/td/a/@href[starts-with(., 'BaseX')]/string())"` | |
for FILE in $FILES |
This file contains hidden or 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
#!/usr/bin/env bash | |
SAXON="/opt/saxon" | |
# Core and library classes | |
# CP="$SAXON/saxon9he.jar" | |
CP="$CP$(for JAR in "$SAXON"/*.jar; do echo -n ":$JAR"; done)" | |
# Options for virtual machine | |
VM=-Xmx512m |
This file contains hidden or 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
#!/bin/bash | |
# Copyright Dirk Kirsten, 2014 | |
# show program usage | |
show_usage() { | |
echo "xquery usage: xquery [-fhiq]" | |
echo " Use different XQuery processors to evaluate an XQuery" | |
echo " -f XQuery file" | |
echo " -h help" | |
echo " -i input file" |