ncnameItor.closeQuietly();
reportError("err:XPTY0004", "The result of atomization was not a single atomic value.");
}
ncnameItor.closeQuietly();
final String ncname;
final Type t = it.getType();
if(t == UntypedAtomicType.UNTYPED_ATOMIC || TypeUtil.subtypeOf(t, StringType.STRING)
|| TypeUtil.subtypeOf(t, NCNameType.NCNAME)) {
ncname = it.stringValue();
if(!XMLUtils.isNCName(ncname)) {
throw new DynamicError("XQDY0041", "Illegal target name as xs:NCName: " + _target);