Store did not work for files ending with .html.
XQuery refactoring: extract function with selected block of code