Document dom = DocumentHelper.createDocument();
if (useXslt) {
Map<String,String> map = new HashMap<String,String>();
map.put("type", "text/xsl");
map.put("href", xsltPath);
dom.addProcessingInstruction("xml-stylesheet", map);
}
Namespace opensearchNs = DocumentHelper.createNamespace("opensearch", XMLNS_A9_OPENSEARCH_1_0);
Namespace hounderNs = DocumentHelper.createNamespace("hounder", XMLNS_HOUNDER_OPENSEARCH_1_0);
Element root;