Sequence retval = Sequence.EMPTY_SEQUENCE; Node n = null;
	public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException {        Sequence retval = Sequence.EMPTY_SEQUENCE;        Node n = null;                if(contextItem != null)            contextSequence = contextItem.toSequence();        NodeSet result = getArgument(0).eval(contextSequence).toNodeSet();        if(result.getLength() > 0)        	n = result.item(0);        if(n != null) {            switch(n.getNodeType()) {                case Node.ELEMENT_NODE:                case Node.ATTRIBUTE_NODE:                    QName qname = ((QNameable) n).getQName();                	/*if (qname.getPrefix() != null) {                	    context.declareNamespace(qname.getPrefix(), qname.getNamespaceURI());                	}*/                    retval = new QNameValue(context, ((QNameable) n).getQName());                    break;                default:                    retval = Sequence.EMPTY_SEQUENCE;                    break;            }        }         return retval;    }