Sequence seq1 = arg0.eval(docs, contextSequence); Sequence seq2 = arg0.eval(docs, contextSequence);
Sequence seq1 = arg0.eval(contextSequence); Sequence seq2 = arg0.eval(contextSequence);
	public Sequence eval(		DocumentSet docs,		Sequence contextSequence,		Item contextItem)		throws XPathException {		Expression arg0 = getArgument(0);		Expression arg1 = getArgument(1);		if (contextItem != null)			contextSequence = contextItem.toSequence();		Sequence seq1 = arg0.eval(docs, contextSequence);		Sequence seq2 = arg0.eval(docs, contextSequence);		if (seq1.getLength() == 0 || seq2.getLength() == 0)			return Sequence.EMPTY_SEQUENCE;		String value = seq1.getStringValue();		String cmp = seq2.getStringValue();		if (cmp.length() == 0)			return StringValue.EMPTY_STRING;		int p = value.indexOf(cmp);		if (p > -1)			return new StringValue(value.substring(0, p));		else			return new StringValue("");	}