An attempt a building a Xquery 'User-Defined Language' for Komodo for the Komodo IDE and Komodo Edit.
xpi instalation file included
transitions from xquery to markup seem to work ok
transitions from markup to xquery seem to work OK
Added XPath and XQuery Functions and Operators
Need some more logic here to identify functions 'node' vs 'node()'
http://docs.activestate.com/komodo/4.4/luddite.html http://www.activestate.com/blog/2007/01/adding-new-languages-komodo-udl http://www.w3.org/TR/xquery-xpath-parsing
https://github.com/spig/pygments-xquery-lexer/blob/master/xquery.py http://www.martin-probst.com/blog/2008/04/08/xquery-pretty-printer/
example files from http://www.datypic.com/books/xquery/examples.html