result = Sequence.EMPTY_SEQUENCE; else { if (contextSequence.isEmpty()) result = Sequence.EMPTY_SEQUENCE; else result = new IntegerValue(contextSequence.getLength()); }
throw new XPathException(getASTNode(), "FONC0001: undefined context item"); else if (contextSequence.isEmpty()) result = Sequence.EMPTY_SEQUENCE; else result = new IntegerValue(contextSequence.getLength());
	public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException {        if (context.getProfiler().isEnabled()) {            context.getProfiler().start(this);                   context.getProfiler().message(this, Profiler.DEPENDENCIES, "DEPENDENCIES", Dependency.getDependenciesName(this.getDependencies()));            if (contextSequence != null)                context.getProfiler().message(this, Profiler.START_SEQUENCES, "CONTEXT SEQUENCE", contextSequence);            if (contextItem != null)                context.getProfiler().message(this, Profiler.START_SEQUENCES, "CONTEXT ITEM", contextItem.toSequence());        }                Sequence result;		if (contextSequence == null)            result = Sequence.EMPTY_SEQUENCE;        else {                        if (contextSequence.isEmpty())                 result = Sequence.EMPTY_SEQUENCE;            else                result = new IntegerValue(contextSequence.getLength());        }                if (context.getProfiler().isEnabled())             context.getProfiler().end(this, "", result);                 return result;           			}