Polyglot script q.xml does real computation. It evaluates "isXPath1" XPath expression I created based on a longer one from Jonathan Robie. It outputs "false" for XPath 2.0 (Saxon XQuery, Saxon XSLT and DataPower XQuery processor) and "true" for XPath 1.0 (DataPower XSLT processor):

Hi,I did some searches but found no other mentioning of this.Fromhttps://en.wikipedia.org/wiki/Polyglot_(computing)... a polyglot is a computer program or script written in a valid form ofmultiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it. ...