public Sequence eval(StaticContext context, DocumentSet docs, Sequence contextSequence, Item contextItem) throws XPathException { if (getArgumentCount() != 2) throw new XPathException("starts-with expects two arguments");
public Sequence eval(DocumentSet docs, Sequence contextSequence, Item contextItem) throws XPathException {
	public Sequence eval(StaticContext context, DocumentSet docs, Sequence contextSequence, 		Item contextItem) throws XPathException {		if (getArgumentCount() != 2)			throw new XPathException("starts-with expects two arguments");		if(contextItem != null)			contextSequence = contextItem.toSequence();		String s1 = getArgument(0).eval(context, docs, contextSequence).getStringValue();		String s2 = getArgument(1).eval(context, docs, contextSequence).getStringValue();		if(s1.startsWith(s2))			return new BooleanValue(true);		else			return new BooleanValue(false);	}