With previous versions of XPath, oXygen has nice support for displaying argument types of a function call in XPath expressions in a tooltip (https://www.oxygenxml.com/doc/versions/ ... elper.html
) but with the arrival of maps https://www.w3.org/TR/xpath-31/#id-maps
in XPath 3.1 there are now functions (https://www.w3.org/TR/xpath-functions/#options
) like the "transform" function https://www.w3.org/TR/xpath-functions/#func-transform
that don't have a list of named arguments but rather expect a map with various, although predefined entries. Currently when you edit XPath or XQuery or use XSLT and use that function I don't get any autocompletion at all (in XML Editor 20.1, build 2018080903), not even for the function name (e.g. after typing "trans" and hitting Ctrl-Space I only see "translate" but not "transform") but I would hope you can also develop some way to list to the editor user the predefined map properties e.g. when I have typed
I would like to get a tooltip and completion support for the predefined map keys of the expected map argument (e.g. 'stylesheet-node', 'source-node') as it is rather tedious memorizing them or having to work with the XPath function spec.
I understand it is kind of a challenge as the function signature doesn't declare the allowed options for a map but I hope for the predefined functions of XPath 3.1 that take maps as arguments you can build a list from the spec and that way assist the editor user in writing function calls with the right map entries.