getFunctionByString method
Looks up an XPath function by name (string) and optional arity.
Implementation
XPathFunctionItem getFunctionByString(String name, [int? arity]) {
final isPrefixed = !name.startsWith('Q{') && name.contains(':');
return getFunction(
XmlName.parse(
name,
namespaceUri: isPrefixed ? null : namespaceUri,
namespaceUris: namespaceUris,
),
arity,
);
}