}
public Expression compile(Executable exec) throws XPathException {
StaticContext env = getStaticContext();
Configuration config = env.getConfiguration();
StringCollator collator = null;
if (collationName != null) {
collator = getPrincipalStylesheet().findCollation(collationName);
if (collator==null) {
compileError("The collation name " + Err.wrap(collationName, Err.URI) + " is not recognized", "XTSE1210");
collator = CodepointCollator.getInstance();