map.put("href", xsltUri);
dom.addProcessingInstruction("xml-stylesheet", map);
}
Element root;
Element group;
root = dom.addElement("SearchResults");
root.addElement("totalResults").addText(Integer.toString(sr.totalResults()));
root.addElement("totalGroupsEstimation").addText(Integer.toString(sr.totalGroupsEstimation()));
if (count > 0) { root.addElement("startIndex").addText(Integer.toString(start)); }
if (count > 0) { root.addElement("itemsPerPage").addText(Integer.toString(count)); }
if (null != orderBy) { root.addElement("orderBy").addText(DomUtil.filterXml(orderBy)); }