There are just some places where you can't put comments. Forget about 'commenting out a block of code' if it resides in "return". let $a:=1 return <A> 666 (: no way to put a comment here :) <!-- no way --> (: no way :) {<!-- no way -->} {(: no way :)} </A>