final QNameValue qname = ((AtomicValue) it).castAs(QNameType.QNAME, dynEnv);
namev = qname.getValue();
} else if(TypeUtil.subtypeOf(t, StringType.STRING) || t == UntypedAtomicType.UNTYPED_ATOMIC) {
final StaticContext sc = dynEnv.getStaticContext();
try {
final CharSequence namecs = it.stringValue();
final String namestr = (namecs == null) ? null : namecs.toString();
namev = QNameUtil.parse(namestr, sc.getStaticalyKnownNamespaces(), sc.getDefaultElementNamespace());
} catch (Exception e) {
throw new DynamicError("err:XQDY0074", e);
}