new NameTest(Type.ELEMENT, NamespaceConstant.SAXON, "catch", getNamePool()));
StyleElement catcher = (StyleElement)catchers.next();
if (catcher != null) {
for (int i=0; i<errorVariables.length; i++) {
if (errorVariables[i].getLocalName().equals(qName.getLocalName())) {
IntegratedFunctionLibrary lib = getConfiguration().getVendorFunctionLibrary();
StructuredQName functionName =
new StructuredQName("saxon", NamespaceConstant.SAXON, "dynamic-error-info");
Expression[] args = new Expression[]{new StringLiteral(qName.getLocalName())};
return lib.bind(functionName, args, this);
}
}
}
}
XPathException err = new XPathException("Variable " + qName.getDisplayName() +