I did successfully manage checking my website for deficient IMG links, $ tail -n 2 Makefile xxqq:l.xq basex -bM="$$(find ~/jidanni.org -name *.html ! -name *_en.html)" $? $ cat l.xq declare option db:parser "html"; declare variable $M external; (: haven't learned collections / weeding around within :) let $k :=fn:tokenize($M, "\s+") for $i in $k (: Find img's on my website with no height and width etc. :) return doc($i)//*:img[not(@width) or not (@height) (: or not (@title) :)] (: To Do: spit out the filename and line number, so emacs can go to it. :)