public String serialize(NodeSet set, int start, int howmany) throws SAXException { return serialize(set, start, howmany, 0);
public String serialize(DocumentImpl doc) throws SAXException { if (outputProperties.getProperty(EXistOutputKeys.PROCESS_XSL_PI, "no").equals("yes")) { String stylesheet = hasXSLPi(doc); if (stylesheet != null) setStylesheet((DocumentImpl) doc, stylesheet); } StringWriter out; if (templates != null) out = applyXSLHandler(); else out = setPrettyPrinter(true);  serializeToReceiver(doc, true); releasePrettyPrinter(); return out.toString();
	public String serialize(NodeSet set, int start, int howmany) throws SAXException {		return serialize(set, start, howmany, 0);	}