AtomicType type = (AtomicType)Type.getBuiltInItemType(uri, localName);
if (type==null) {
return new ErrorExpression(
new DynamicError("Unknown constructor function: " + localName));
}
return new CastExpression(arguments[0], type, false);
}
// Now see if it's a constructor function for a user-defined type
if (arguments.length == 1) {
SchemaType st = config.getSchemaType(nameCode & 0xfffff);
if (st != null && st instanceof AtomicType) {
return new CastExpression(arguments[0], (AtomicType)st, false);
}
}
return null;
}