// If $qname is the empty sequence, returns the empty sequence.
Item firstItem = argv.getItem(0);
if(firstItem.isEmpty()) {
return ValueSequence.EMPTY_SEQUENCE;
}
XString qname = (XString) firstItem;
String qnameStr = qname.getValue();
final int pos = qnameStr.indexOf(':');
final String nsuri;
if(pos == -1) {
// If the $qname has no prefix, and there is no namespace binding for $element
// corresponding to the default (unnamed) namespace, then the resulting expanded-QName