(add-to-list 'load-path "/full/path/to/psgml/dir")
(setq auto-mode-alist (append (list '("\\.xql$" . xml-mode))
in your .emacs file