boolean (XPathExpression argument) { if (argument.getXPathContext() instanceof Xslt2ContextProvider) { return argument instanceof XPathString || argument instanceof XPathVariableReference; } else { return argument instanceof XPathString; } }