XQuery needs an XML syntax (or more exactly, an API giving an XML view of the parse tree).
Xq2xml provides this, and demonstrates the usefulness of such an API.
An XML view of a combined XSLT/XPath parse tree could be similarly useful, constructed by replacing xsl attributes containing
XPath by elements containing the xq2xml view of the XPath expression.