URI collationURI;
try {
collationURI = new URI(collation, true);
if (!collationURI.isAbsolute()) {
URI base = new URI(baseURI);
collationURI = base.resolve(collationURI.toString());
final String collationNameString = collationURI.toString();
collationNameExpression = new StringLiteral(collationNameString);
collator = visitor.getConfiguration().getNamedCollation(collationNameString);
if (collator == null) {
dynamicError("Unknown collation " + Err.wrap(collationURI.toString(), Err.URI), "XTDE1110", null);