The expression that decides whether we're loading an html file needs to allow for main.html.xqy to be seen as a .xqy file, not .html.