public Sequence eval(DocumentSet docs, Sequence contextSequence, Item contextItem)
public Sequence eval(Sequence contextSequence, Item contextItem)
	public Sequence eval(DocumentSet docs, Sequence contextSequence, Item contextItem)		throws XPathException {		Sequence seq = getArgument(0).eval(docs, contextSequence, contextItem);		if(seq.getLength() == 0)			return Sequence.EMPTY_SEQUENCE;		String str = seq.getStringValue();		int count = ((IntegerValue)getArgument(1).eval(docs, contextSequence, contextItem).convertTo(Type.INTEGER)).getInt();		if(count == 0)			return StringValue.EMPTY_STRING;		if(count < 0)			throw new XPathException("Invalid string-pad count");		StringBuffer buf = new StringBuffer(str.length() * count);		for(int i = 0; i < count; i++)			buf.append(str);		return new StringValue(buf.toString());	}