Replacement code for method parseExtensionExpression in net.sf.saxon.query.QueryParser